Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.NandGate.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009801/0.0009801, allocations: 81.91 kB / 21.42 MB, free: 3.07 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001289/0.001289, allocations: 169.3 kB / 24.82 MB, free: 9.273 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.003/1.003, allocations: 177 MB / 205.1 MB, free: 5.48 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Electrical.Analog.Examples.NandGate,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5059,variableFilter="time|Nand.C4.v|Nand.C7.v",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Analog.Examples.NandGate") translateModel(Modelica.Electrical.Analog.Examples.NandGate,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5059,variableFilter="time|Nand.C4.v|Nand.C7.v",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Analog.Examples.NandGate") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.923e-06/1.923e-06, allocations: 0 / 273.3 MB, free: 1.223 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.195e-05/2.387e-05, allocations: 2.312 kB / 273.3 MB, free: 1.219 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.NandGate): time 0.004285/0.004309, allocations: 4.097 MB / 277.4 MB, free: 13.1 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001883/0.006192, allocations: 1.199 MB / 278.6 MB, free: 11.89 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00024/0.006432, allocations: 12 kB / 278.6 MB, free: 11.88 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001932/0.006625, allocations: 106.9 kB / 278.7 MB, free: 11.77 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002972/0.006922, allocations: 198.1 kB / 278.9 MB, free: 11.58 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005559/0.007478, allocations: 343.4 kB / 279.3 MB, free: 11.24 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0008801/0.008358, allocations: 1.112 MB / 280.4 MB, free: 10.12 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002845/0.008643, allocations: 194.9 kB / 280.6 MB, free: 9.934 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002009/0.01065, allocations: 0.6005 MB / 281.2 MB, free: 9.332 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006139/0.01127, allocations: 371 kB / 281.5 MB, free: 8.969 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002257/0.01149, allocations: 116 kB / 281.7 MB, free: 8.855 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001818/0.01167, allocations: 120 kB / 281.8 MB, free: 8.738 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001777/0.01185, allocations: 223.3 kB / 282 MB, free: 8.52 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003992/0.01225, allocations: 323.3 kB / 282.3 MB, free: 8.203 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0009144/0.01316, allocations: 0.7205 MB / 283 MB, free: 7.48 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.39e-06/0.01317, allocations: 0 / 283 MB, free: 7.48 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.202e-06/0.01317, allocations: 4 kB / 283 MB, free: 7.477 MB / 266.7 MB Notification: Performance of Transformations before backend: time 2.237e-05/0.01319, allocations: 0 / 283 MB, free: 7.477 MB / 266.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 147 * Number of variables: 147 Notification: Performance of Generate backend data structure: time 0.002036/0.01523, allocations: 1.228 MB / 284.3 MB, free: 6.195 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.486e-05/0.01528, allocations: 15.98 kB / 284.3 MB, free: 6.18 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002089/0.01549, allocations: 140.4 kB / 284.4 MB, free: 6.043 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005288/0.01602, allocations: 418.2 kB / 284.8 MB, free: 5.605 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.295e-05/0.01606, allocations: 45.69 kB / 284.9 MB, free: 5.559 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.741e-05/0.01616, allocations: 64.38 kB / 284.9 MB, free: 5.496 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001178/0.01734, allocations: 1 MB / 285.9 MB, free: 4.34 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.358e-05/0.01735, allocations: 192 / 285.9 MB, free: 4.34 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.377e-05/0.0174, allocations: 28.38 kB / 286 MB, free: 4.312 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.505e-05/0.01741, allocations: 19.94 kB / 286 MB, free: 4.293 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000396/0.01781, allocations: 286.6 kB / 286.3 MB, free: 4.012 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002597/0.02041, allocations: 3.05 MB / 289.3 MB, free: 0.8359 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005648/0.02097, allocations: 357.1 kB / 289.7 MB, free: 484 kB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002984/0.02127, allocations: 165.1 kB / 289.8 MB, free: 316 kB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.368e-05/0.02132, allocations: 20.47 kB / 289.8 MB, free: 296 kB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002913/0.02161, allocations: 235.7 kB / 290.1 MB, free: 48 kB / 266.7 MB Notification: Performance of pre-optimization done (n=50): time 2.024e-06/0.02162, allocations: 0 / 290.1 MB, free: 48 kB / 266.7 MB Notification: Performance of matching and sorting (n=50): time 0.1091/0.1307, allocations: 438 kB / 290.5 MB, free: 25.73 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.264e-05/0.1308, allocations: 374.7 kB / 290.9 MB, free: 25.29 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004401/0.1313, allocations: 0.5124 MB / 291.4 MB, free: 25.11 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 6.007e-05/0.1313, allocations: 40.11 kB / 291.4 MB, free: 25.08 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002/0.1315, allocations: 433 kB / 291.8 MB, free: 24.88 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.89e-05/0.1316, allocations: 178.2 kB / 292 MB, free: 24.79 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001564/0.1318, allocations: 151.6 kB / 292.2 MB, free: 24.75 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 9.772e-05/0.1319, allocations: 0.5433 MB / 292.7 MB, free: 24.26 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001983/0.1321, allocations: 161.4 kB / 292.9 MB, free: 24.2 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003285/0.1324, allocations: 0.8542 MB / 293.7 MB, free: 23.27 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004606/0.1329, allocations: 0.5748 MB / 294.3 MB, free: 22.87 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.37e-06/0.1329, allocations: 1.219 kB / 294.3 MB, free: 22.87 MB / 266.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.0007656/0.1336, allocations: 0.6762 MB / 295 MB, free: 22.67 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.301e-05/0.1337, allocations: 70.52 kB / 295 MB, free: 22.61 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.117e-05/0.1337, allocations: 8.438 kB / 295 MB, free: 22.61 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.778e-05/0.1337, allocations: 10.86 kB / 295 MB, free: 22.61 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000462/0.1341, allocations: 193 kB / 295.2 MB, free: 22.61 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.111e-05/0.1342, allocations: 14.08 kB / 295.2 MB, free: 22.61 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003935/0.1346, allocations: 132.2 kB / 295.4 MB, free: 22.58 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.903e-05/0.1346, allocations: 31.11 kB / 295.4 MB, free: 22.58 MB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 28 * Number of states: 0 () * Number of discrete variables: 10 (VIN2.signalSource.count,$PRE.VIN2.signalSource.count,VIN2.signalSource.T_start,$PRE.VIN2.signalSource.T_start,VIN1.signalSource.count,$PRE.VIN1.signalSource.count,VIN1.signalSource.T_start,$PRE.VIN1.signalSource.T_start,$whenCondition1,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (89): * Single equations (assignments): 87 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001413/0.1347, allocations: 217.8 kB / 295.6 MB, free: 22.41 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.885e-05/0.1348, allocations: 84.88 kB / 295.7 MB, free: 22.38 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.158e-05/0.1349, allocations: 68.02 kB / 295.8 MB, free: 22.36 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.859e-06/0.1349, allocations: 4.25 kB / 295.8 MB, free: 22.36 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.342e-06/0.1349, allocations: 1.094 kB / 295.8 MB, free: 22.36 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.811e-06/0.1349, allocations: 2.672 kB / 295.8 MB, free: 22.36 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001011/0.1359, allocations: 0.9577 MB / 296.7 MB, free: 22.07 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.776e-06/0.1359, allocations: 2.312 kB / 296.7 MB, free: 22.07 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003121/0.1362, allocations: 117.7 kB / 296.9 MB, free: 22.07 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.388e-06/0.1362, allocations: 2.578 kB / 296.9 MB, free: 22.07 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.72e-05/0.1363, allocations: 12.42 kB / 296.9 MB, free: 22.07 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.074e-06/0.1363, allocations: 2.344 kB / 296.9 MB, free: 22.07 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.134e-06/0.1363, allocations: 2.172 kB / 296.9 MB, free: 22.07 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006543/0.1369, allocations: 0.619 MB / 297.5 MB, free: 21.82 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.829e-05/0.137, allocations: 71.05 kB / 297.6 MB, free: 21.79 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.981e-05/0.137, allocations: 11.95 kB / 297.6 MB, free: 21.79 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002489/0.1373, allocations: 65.73 kB / 297.6 MB, free: 21.79 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.55e-05/0.1374, allocations: 49.61 kB / 297.7 MB, free: 21.79 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.548e-05/0.1374, allocations: 12.77 kB / 297.7 MB, free: 21.79 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001978/0.1376, allocations: 313.1 kB / 298 MB, free: 21.66 MB / 266.7 MB Notification: Performance of sort global known variables: time 7e-08/0.1376, allocations: 1.344 kB / 298 MB, free: 21.66 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0004107/0.138, allocations: 183.9 kB / 298.2 MB, free: 21.65 MB / 266.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (Nand.C4.v,Nand.C7.v) * Number of discrete variables: 6 ($whenCondition2,$whenCondition1,VIN1.signalSource.T_start,VIN1.signalSource.count,VIN2.signalSource.T_start,VIN2.signalSource.count) * Number of discrete states: 2 (VIN1.signalSource.count,VIN2.signalSource.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (50): * Single equations (assignments): 46 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 9.763e-05/0.1381, allocations: 122.5 kB / 298.3 MB, free: 21.56 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0005396/0.1386, allocations: 0.5376 MB / 298.8 MB, free: 21.32 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.545e-06/0.1386, allocations: 1.156 kB / 298.8 MB, free: 21.32 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002208/0.1389, allocations: 168 kB / 299 MB, free: 21.29 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003619/0.1392, allocations: 124.5 kB / 299.1 MB, free: 21.29 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001314/0.1405, allocations: 1.036 MB / 300.2 MB, free: 20.76 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.954e-05/0.1406, allocations: 132.1 kB / 300.3 MB, free: 20.68 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0002495/0.1409, allocations: 79.94 kB / 300.4 MB, free: 20.65 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003807/0.1412, allocations: 236.8 kB / 300.6 MB, free: 20.59 MB / 266.7 MB Notification: Performance of SimCode: time 7.62e-07/0.1412, allocations: 0 / 300.6 MB, free: 20.59 MB / 266.7 MB Notification: Performance of Templates: time 0.01146/0.1527, allocations: 9.414 MB / 310 MB, free: 15.73 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Electrical.Analog.Examples.NandGate.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.NandGate.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.NandGate.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.NandGate.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.NandGate.sim & ./Modelica_trunk_Modelica.Electrical.Analog.Examples.NandGate -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Analog.Examples.NandGate.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_Modelica.Electrical.Analog.Examples.NandGate_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Analog/Examples/NandGate/NandGate.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.8299633860588074]