Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nand.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Spice3.Examples.Nand,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|mp2.S.v",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nand") translateModel(Modelica.Electrical.Spice3.Examples.Nand,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|mp2.S.v",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nand") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001746/0.001746, allocations: 109.2 kB / 17.17 MB, free: 6.32 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002354/0.002354, allocations: 194.9 kB / 18.08 MB, free: 5.41 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.256/2.256, allocations: 222.9 MB / 241.8 MB, free: 15.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001932/0.001931, allocations: 50.64 kB / 300.6 MB, free: 6.238 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1553/0.1572, allocations: 49.45 MB / 350 MB, free: 4.781 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nand): time 0.02241/0.1797, allocations: 13.9 MB / 363.9 MB, free: 6.816 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.3434/0.5232, allocations: 20.47 MB / 384.4 MB, free: 8.324 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004593/0.5278, allocations: 64.25 kB / 384.5 MB, free: 8.293 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006837/0.5347, allocations: 0.9762 MB / 385.5 MB, free: 8.02 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01748/0.5523, allocations: 1.897 MB / 387.4 MB, free: 7.363 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01148/0.5639, allocations: 1.194 MB / 388.5 MB, free: 6.852 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.01915/0.5831, allocations: 6.238 MB / 394.8 MB, free: 4.539 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002108/0.5853, allocations: 415.8 kB / 395.2 MB, free: 4.328 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003638/0.589, allocations: 1.009 MB / 396.2 MB, free: 3.91 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003346/0.5924, allocations: 1.035 MB / 397.2 MB, free: 3.398 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009085/0.5933, allocations: 45.78 kB / 397.3 MB, free: 3.398 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0164/0.6098, allocations: 1.457 MB / 398.7 MB, free: 2.844 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001112/0.6109, allocations: 285.4 kB / 399 MB, free: 2.621 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00565/0.6166, allocations: 1.281 MB / 400.3 MB, free: 1.789 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006056/0.6227, allocations: 2.656 MB / 402.9 MB, free: 15.94 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.171e-05/0.6228, allocations: 2.5 kB / 403 MB, free: 15.94 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.886e-06/0.6228, allocations: 0 / 403 MB, free: 15.94 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0002118/0.623, allocations: 0 / 403 MB, free: 15.94 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 146 * Number of variables: 146 Notification: Performance of Generate backend data structure: time 0.01288/0.6359, allocations: 3.509 MB / 406.5 MB, free: 12.68 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.264e-05/0.636, allocations: 12.02 kB / 406.5 MB, free: 12.67 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001243/0.6373, allocations: 376.4 kB / 406.8 MB, free: 12.3 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008235/0.6455, allocations: 2.512 MB / 409.4 MB, free: 9.715 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.807e-05/0.6457, allocations: 37 kB / 409.4 MB, free: 9.68 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004393/0.6462, allocations: 47.91 kB / 409.4 MB, free: 9.633 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002772/0.6489, allocations: 0.703 MB / 410.1 MB, free: 8.926 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.908e-05/0.649, allocations: 4 kB / 410.1 MB, free: 8.922 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001442/0.6492, allocations: 20 kB / 410.2 MB, free: 8.902 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.312e-05/0.6492, allocations: 19.98 kB / 410.2 MB, free: 8.883 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002457/0.6517, allocations: 0.7889 MB / 411 MB, free: 8.09 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009509/0.6612, allocations: 2.895 MB / 413.9 MB, free: 5.121 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00195/0.6632, allocations: 0.6905 MB / 414.6 MB, free: 4.402 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001591/0.6648, allocations: 0.6486 MB / 415.2 MB, free: 3.758 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0413/0.7062, allocations: 30.1 MB / 445.3 MB, free: 1.559 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001061/0.7073, allocations: 361.5 kB / 445.7 MB, free: 1.195 MB / 350.1 MB Notification: Performance of pre-optimization done (n=49): time 5.5e-06/0.7073, allocations: 0 / 445.7 MB, free: 1.195 MB / 350.1 MB Notification: Performance of matching and sorting (n=49): time 0.005248/0.7126, allocations: 1.392 MB / 447 MB, free: 15.77 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.775e-05/0.7127, allocations: 63.39 kB / 447.1 MB, free: 15.7 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006987/0.7197, allocations: 2.795 MB / 449.9 MB, free: 12.88 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002177/0.72, allocations: 37.7 kB / 449.9 MB, free: 12.84 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002095/0.7221, allocations: 1.379 MB / 451.3 MB, free: 11.45 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004013/0.7226, allocations: 165.7 kB / 451.5 MB, free: 11.29 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006193/0.7232, allocations: 234 kB / 451.7 MB, free: 11.05 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0002038/0.7234, allocations: 341.8 kB / 452 MB, free: 10.71 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007372/0.7242, allocations: 237.8 kB / 452.3 MB, free: 10.48 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009519/0.7251, allocations: 0.5852 MB / 452.9 MB, free: 9.727 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001659/0.7268, allocations: 0.888 MB / 453.8 MB, free: 8.668 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.44e-05/0.7269, allocations: 4 kB / 453.8 MB, free: 8.664 MB / 366.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.002968/0.7298, allocations: 1.276 MB / 455 MB, free: 7.379 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.529e-05/0.7299, allocations: 12 kB / 455 MB, free: 7.367 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001434/0.73, allocations: 83.98 kB / 455.1 MB, free: 7.285 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000695/0.7308, allocations: 280.1 kB / 455.4 MB, free: 7.012 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006794/0.7314, allocations: 159.7 kB / 455.6 MB, free: 6.855 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001182/0.7326, allocations: 0.8879 MB / 456.4 MB, free: 5.941 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001879/0.7345, allocations: 114.8 kB / 456.6 MB, free: 5.832 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001917/0.7348, allocations: 64 kB / 456.6 MB, free: 5.77 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 55 * Number of states: 0 () * Number of discrete variables: 14 (vin1.counter,$PRE.vin1.counter,vin2.counter,$PRE.vin2.counter,vin2.counter2,$PRE.vin2.counter2,vin2.T0,$PRE.vin2.T0,vin1.counter2,$PRE.vin1.counter2,vin1.T0,$PRE.vin1.T0,$whenCondition1,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (86): * Single equations (assignments): 85 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,12)} Notification: Performance of prepare postOptimizeDAE: time 0.001368/0.7361, allocations: 421.5 kB / 457 MB, free: 5.348 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001415/0.7376, allocations: 359.6 kB / 457.4 MB, free: 4.992 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004658/0.7422, allocations: 1.282 MB / 458.7 MB, free: 3.684 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.429e-05/0.7423, allocations: 4 kB / 458.7 MB, free: 3.68 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.366e-06/0.7423, allocations: 0 / 458.7 MB, free: 3.68 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.394e-06/0.7423, allocations: 0 / 458.7 MB, free: 3.68 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006217/0.7486, allocations: 2.197 MB / 460.9 MB, free: 1.402 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001382/0.7488, allocations: 68 kB / 460.9 MB, free: 1.336 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004261/0.7492, allocations: 75.94 kB / 461 MB, free: 1.262 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005943/0.7498, allocations: 264.7 kB / 461.3 MB, free: 1 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.409e-05/0.7499, allocations: 32 kB / 461.3 MB, free: 0.9688 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001106/0.751, allocations: 0.8659 MB / 462.2 MB, free: 84 kB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.387e-06/0.7511, allocations: 0 / 462.2 MB, free: 84 kB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002912/0.754, allocations: 1.133 MB / 463.3 MB, free: 14.91 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001526/0.7555, allocations: 468.4 kB / 463.7 MB, free: 14.43 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008333/0.7564, allocations: 8 kB / 463.8 MB, free: 14.42 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001327/0.7577, allocations: 35.95 kB / 463.8 MB, free: 14.38 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002488/0.758, allocations: 67.88 kB / 463.9 MB, free: 14.32 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000109/0.7581, allocations: 36 kB / 463.9 MB, free: 14.28 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.004615/0.7628, allocations: 1.82 MB / 465.7 MB, free: 12.46 MB / 382.1 MB Notification: Performance of sort global known variables: time 6.11e-07/0.7628, allocations: 0 / 465.7 MB, free: 12.46 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002673/0.7655, allocations: 0.5623 MB / 466.3 MB, free: 11.89 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 8 ($whenCondition2,$whenCondition1,vin1.T0,vin1.counter,vin1.counter2,vin2.T0,vin2.counter,vin2.counter2) * Number of discrete states: 4 (vin1.counter2,vin2.counter2,vin1.counter,vin2.counter) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (30): * Single equations (assignments): 23 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 6 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,12)} Notification: Performance of Backend phase and start with SimCode phase: time 0.00173/0.7672, allocations: 0.7768 MB / 467.1 MB, free: 11.11 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002312/0.7695, allocations: 0.8422 MB / 467.9 MB, free: 10.25 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 7.394e-06/0.7696, allocations: 0 / 467.9 MB, free: 10.25 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001161/0.7707, allocations: 0.4888 MB / 468.4 MB, free: 9.734 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005552/0.7763, allocations: 0.5656 MB / 468.9 MB, free: 9.164 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01185/0.7882, allocations: 4.764 MB / 473.7 MB, free: 4.34 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002729/0.791, allocations: 1.601 MB / 475.3 MB, free: 2.707 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006169/0.7917, allocations: 163.4 kB / 475.5 MB, free: 2.551 MB / 382.1 MB Notification: Performance of SimCode: time 2.224e-06/0.7917, allocations: 0 / 475.5 MB, free: 2.551 MB / 382.1 MB Notification: Performance of Templates: time 0.09197/0.8837, allocations: 47.68 MB / 0.5109 GB, free: 3.004 MB / 430.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nand.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nand.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nand.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nand.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nand.sim & ./Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nand -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nand.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nand_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Spice3/Examples/Nand/Nand.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nand.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches