Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.NandGate.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009206/0.0009206, allocations: 80.72 kB / 22.21 MB, free: 2.293 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008447/0.0008447, allocations: 143.7 kB / 25.59 MB, free: 8.605 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.8942/0.8942, allocations: 173.4 MB / 202.2 MB, free: 8.285 MB / 186.7 MB " [Timeout remaining time 179] 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.Analog.Examples.NandGate,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5059,variableFilter="time|Nand.C4.v|Nand.C7.v",fileNamePrefix="Modelica_4.0.0_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_4.0.0_Modelica.Electrical.Analog.Examples.NandGate") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.615e-06/2.615e-06, allocations: 4 kB / 269.2 MB, free: 9.785 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.633e-05/1.895e-05, allocations: 3.656 kB / 269.2 MB, free: 9.781 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.NandGate): time 0.003807/0.003826, allocations: 4.079 MB / 273.3 MB, free: 5.695 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.002067/0.005893, allocations: 1.17 MB / 274.4 MB, free: 4.527 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002253/0.006118, allocations: 11.94 kB / 274.5 MB, free: 4.516 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001955/0.006314, allocations: 102.9 kB / 274.6 MB, free: 4.414 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000264/0.006578, allocations: 196.5 kB / 274.8 MB, free: 4.223 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005363/0.007114, allocations: 337.7 kB / 275.1 MB, free: 3.895 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0007849/0.007899, allocations: 1.12 MB / 276.2 MB, free: 2.773 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002522/0.008151, allocations: 194.9 kB / 276.4 MB, free: 2.578 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005284/0.00868, allocations: 0.6005 MB / 277 MB, free: 1.977 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003078/0.008987, allocations: 371 kB / 277.4 MB, free: 1.613 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 9.989e-05/0.009087, allocations: 120 kB / 277.5 MB, free: 1.496 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.499e-05/0.009182, allocations: 116 kB / 277.6 MB, free: 1.383 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000125/0.009307, allocations: 227.3 kB / 277.8 MB, free: 1.16 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002042/0.009512, allocations: 323.3 kB / 278.1 MB, free: 0.8438 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004971/0.01001, allocations: 0.7166 MB / 278.8 MB, free: 128 kB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.284e-06/0.01001, allocations: 0 / 278.8 MB, free: 128 kB / 250.7 MB Notification: Performance of FrontEnd: time 5.61e-07/0.01001, allocations: 7.938 kB / 278.8 MB, free: 120 kB / 250.7 MB Notification: Performance of Transformations before backend: time 5.881e-06/0.01002, allocations: 0 / 278.8 MB, free: 120 kB / 250.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.001357/0.01137, allocations: 1.216 MB / 280.1 MB, free: 14.84 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.265e-05/0.01141, allocations: 12.03 kB / 280.1 MB, free: 14.83 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001438/0.01155, allocations: 128.4 kB / 280.2 MB, free: 14.7 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003686/0.01192, allocations: 422.2 kB / 280.6 MB, free: 14.26 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.363e-05/0.01195, allocations: 45.69 kB / 280.7 MB, free: 14.22 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.524e-05/0.01203, allocations: 72.3 kB / 280.7 MB, free: 14.15 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001115/0.01314, allocations: 0.9921 MB / 281.7 MB, free: 13 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.621e-05/0.01316, allocations: 8.109 kB / 281.7 MB, free: 13 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.678e-05/0.01321, allocations: 24.38 kB / 281.8 MB, free: 12.97 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.339e-05/0.01322, allocations: 19.94 kB / 281.8 MB, free: 12.95 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003734/0.01359, allocations: 282.6 kB / 282 MB, free: 12.68 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002351/0.01594, allocations: 3.065 MB / 285.1 MB, free: 9.48 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005232/0.01647, allocations: 347.2 kB / 285.5 MB, free: 9.129 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002184/0.01669, allocations: 177 kB / 285.6 MB, free: 8.953 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.157e-05/0.01672, allocations: 12.48 kB / 285.6 MB, free: 8.941 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002565/0.01697, allocations: 227.8 kB / 285.9 MB, free: 8.707 MB / 266.7 MB Notification: Performance of pre-optimization done (n=50): time 1.573e-06/0.01697, allocations: 0 / 285.9 MB, free: 8.707 MB / 266.7 MB Notification: Performance of matching and sorting (n=50): time 0.0006002/0.01757, allocations: 452.5 kB / 286.3 MB, free: 8.258 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001058/0.01768, allocations: 380.3 kB / 286.7 MB, free: 7.801 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003143/0.01799, allocations: 0.506 MB / 287.2 MB, free: 7.277 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 4.366e-05/0.01804, allocations: 41.64 kB / 287.2 MB, free: 7.23 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001855/0.01822, allocations: 426.9 kB / 287.6 MB, free: 6.805 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.923e-05/0.01832, allocations: 178.5 kB / 287.8 MB, free: 6.629 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001566/0.01848, allocations: 152.2 kB / 288 MB, free: 6.473 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0004057/0.01889, allocations: 0.5429 MB / 288.5 MB, free: 5.918 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001889/0.01907, allocations: 169.3 kB / 288.7 MB, free: 5.738 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004001/0.01947, allocations: 0.8423 MB / 289.5 MB, free: 4.637 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004352/0.01991, allocations: 0.5804 MB / 290.1 MB, free: 3.934 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.166e-06/0.01991, allocations: 0 / 290.1 MB, free: 3.934 MB / 266.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.0006605/0.02057, allocations: 0.6784 MB / 290.8 MB, free: 3.223 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.663e-05/0.02061, allocations: 67.34 kB / 290.8 MB, free: 3.145 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.205e-06/0.02062, allocations: 8 kB / 290.8 MB, free: 3.137 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.208e-05/0.02063, allocations: 8 kB / 290.8 MB, free: 3.129 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004432/0.02107, allocations: 196 kB / 291 MB, free: 2.938 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.183e-05/0.02109, allocations: 19.92 kB / 291.1 MB, free: 2.918 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003459/0.02143, allocations: 123.4 kB / 291.2 MB, free: 2.797 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.872e-05/0.02147, allocations: 28 kB / 291.2 MB, free: 2.77 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.0001569/0.02163, allocations: 212.3 kB / 291.4 MB, free: 2.551 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.621e-05/0.0217, allocations: 79.62 kB / 291.5 MB, free: 2.473 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.711e-05/0.02178, allocations: 69.88 kB / 291.6 MB, free: 2.406 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.12e-06/0.02179, allocations: 8 kB / 291.6 MB, free: 2.398 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.973e-06/0.02179, allocations: 0 / 291.6 MB, free: 2.398 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.168e-06/0.02179, allocations: 0 / 291.6 MB, free: 2.398 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009478/0.02274, allocations: 0.9522 MB / 292.5 MB, free: 1.414 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.31e-06/0.02274, allocations: 7.938 kB / 292.5 MB, free: 1.406 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003278/0.02307, allocations: 123.8 kB / 292.7 MB, free: 1.285 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.838e-06/0.02308, allocations: 4 kB / 292.7 MB, free: 1.281 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.744e-05/0.0231, allocations: 15.98 kB / 292.7 MB, free: 1.266 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.863e-06/0.02311, allocations: 0 / 292.7 MB, free: 1.266 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.152e-06/0.02311, allocations: 0 / 292.7 MB, free: 1.266 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006287/0.02374, allocations: 0.6151 MB / 293.3 MB, free: 0.6289 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.386e-05/0.02379, allocations: 67.39 kB / 293.4 MB, free: 0.5625 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.934e-05/0.02385, allocations: 15.98 kB / 293.4 MB, free: 0.5469 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002526/0.0241, allocations: 55.95 kB / 293.4 MB, free: 0.4922 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.266e-05/0.02418, allocations: 52.41 kB / 293.5 MB, free: 452 kB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.172e-05/0.02421, allocations: 11.98 kB / 293.5 MB, free: 440 kB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001651/0.02437, allocations: 318.7 kB / 293.8 MB, free: 124 kB / 266.7 MB Notification: Performance of sort global known variables: time 6e-08/0.02437, allocations: 0 / 293.8 MB, free: 124 kB / 266.7 MB Notification: Performance of remove unused functions: time 0.0003532/0.02472, allocations: 183.8 kB / 294 MB, free: 15.94 MB / 282.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 0.0001088/0.02483, allocations: 111.2 kB / 294.1 MB, free: 15.82 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0005018/0.02533, allocations: 0.534 MB / 294.6 MB, free: 15.24 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 2.565e-06/0.02534, allocations: 4 kB / 294.6 MB, free: 15.24 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000191/0.02553, allocations: 167.4 kB / 294.8 MB, free: 15.07 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003579/0.02589, allocations: 123.2 kB / 294.9 MB, free: 14.95 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001477/0.02736, allocations: 1.042 MB / 295.9 MB, free: 13.88 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.249e-05/0.02744, allocations: 126 kB / 296.1 MB, free: 13.73 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0002158/0.02765, allocations: 80.66 kB / 296.1 MB, free: 13.65 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003581/0.02801, allocations: 238.1 kB / 296.4 MB, free: 13.42 MB / 282.7 MB Notification: Performance of SimCode: time 6.91e-07/0.02801, allocations: 0 / 296.4 MB, free: 13.42 MB / 282.7 MB Notification: Performance of Templates: time 0.01193/0.03994, allocations: 9.584 MB / 306 MB, free: 3.977 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.NandGate.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.NandGate.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.NandGate.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.NandGate.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.NandGate.sim & ./Modelica_4.0.0_Modelica.Electrical.Analog.Examples.NandGate -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.NandGate.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.NandGate_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.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.863547633867711]