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.001658/0.001658, allocations: 92.62 kB / 20.96 MB, free: 3.473 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.001541/0.001541, allocations: 149.4 kB / 24.25 MB, free: 184 kB / 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 1.443/1.443, allocations: 173.4 MB / 200.8 MB, free: 9.281 MB / 186.7 MB " [Timeout remaining time 178] 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.044e-06/2.044e-06, allocations: 0 / 267.3 MB, free: 6.691 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.102e-05/3.306e-05, allocations: 2.312 kB / 267.3 MB, free: 6.688 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.NandGate): time 0.008303/0.008336, allocations: 3.811 MB / 271.1 MB, free: 2.855 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0035/0.01184, allocations: 1.148 MB / 272.3 MB, free: 1.699 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005922/0.01243, allocations: 11.94 kB / 272.3 MB, free: 1.688 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004592/0.01289, allocations: 118.8 kB / 272.4 MB, free: 1.57 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0007281/0.01362, allocations: 194.1 kB / 272.6 MB, free: 1.379 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001128/0.01474, allocations: 335.5 kB / 272.9 MB, free: 1.051 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.002133/0.01688, allocations: 1.112 MB / 274 MB, free: 15.93 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005624/0.01744, allocations: 195 kB / 274.2 MB, free: 15.74 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001323/0.01876, allocations: 0.6005 MB / 274.8 MB, free: 15.14 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008268/0.01959, allocations: 355.1 kB / 275.2 MB, free: 14.79 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002615/0.01985, allocations: 116 kB / 275.3 MB, free: 14.68 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002694/0.02012, allocations: 120 kB / 275.4 MB, free: 14.56 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003475/0.02047, allocations: 227.3 kB / 275.6 MB, free: 14.34 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000598/0.02107, allocations: 319.3 kB / 275.9 MB, free: 14.02 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002317/0.02338, allocations: 1.301 MB / 277.2 MB, free: 12.72 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.879e-06/0.02339, allocations: 0 / 277.2 MB, free: 12.72 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.533e-06/0.02339, allocations: 0 / 277.2 MB, free: 12.72 MB / 266.7 MB Notification: Performance of Transformations before backend: time 2.645e-05/0.02342, allocations: 0 / 277.2 MB, free: 12.72 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.004945/0.02836, allocations: 1.202 MB / 278.5 MB, free: 11.46 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.853e-05/0.02842, allocations: 8.922 kB / 278.5 MB, free: 11.46 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004295/0.02885, allocations: 136.4 kB / 278.6 MB, free: 11.32 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001182/0.03003, allocations: 427.4 kB / 279 MB, free: 10.88 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.491e-05/0.03012, allocations: 45.69 kB / 279.1 MB, free: 10.84 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002137/0.03033, allocations: 68.36 kB / 279.1 MB, free: 10.77 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004142/0.03447, allocations: 1.262 MB / 280.4 MB, free: 9.375 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.548e-05/0.0345, allocations: 4.188 kB / 280.4 MB, free: 9.371 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001343/0.03463, allocations: 32.38 kB / 280.4 MB, free: 9.34 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.931e-05/0.03466, allocations: 15.94 kB / 280.4 MB, free: 9.324 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005139/0.0398, allocations: 0.9991 MB / 281.4 MB, free: 8.32 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008519/0.04832, allocations: 2.854 MB / 284.3 MB, free: 5.355 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003959/0.05228, allocations: 0.7376 MB / 285 MB, free: 4.609 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002074/0.05435, allocations: 418 kB / 285.4 MB, free: 4.199 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.253e-05/0.05442, allocations: 12.5 kB / 285.4 MB, free: 4.188 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002091/0.05651, allocations: 462 kB / 285.9 MB, free: 3.723 MB / 266.7 MB Notification: Performance of pre-optimization done (n=50): time 3.998e-06/0.05652, allocations: 0 / 285.9 MB, free: 3.723 MB / 266.7 MB Notification: Performance of matching and sorting (n=50): time 0.005769/0.06229, allocations: 1.121 MB / 287 MB, free: 2.594 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003655/0.06265, allocations: 376.3 kB / 287.4 MB, free: 2.141 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001287/0.06394, allocations: 0.5299 MB / 287.9 MB, free: 1.598 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001073/0.06405, allocations: 37.7 kB / 288 MB, free: 1.555 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005293/0.06458, allocations: 388.3 kB / 288.3 MB, free: 1.172 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002757/0.06485, allocations: 170.5 kB / 288.5 MB, free: 1.004 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004362/0.06529, allocations: 138.6 kB / 288.6 MB, free: 0.8633 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0003151/0.0656, allocations: 374.8 kB / 289 MB, free: 500 kB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002028/0.06763, allocations: 457.1 kB / 289.4 MB, free: 28 kB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.1281/0.1957, allocations: 1.034 MB / 290.5 MB, free: 32.11 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002191/0.1979, allocations: 0.9718 MB / 291.5 MB, free: 31.81 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.224e-06/0.1979, allocations: 2.312 kB / 291.5 MB, free: 31.81 MB / 266.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.002859/0.2007, allocations: 1.225 MB / 292.7 MB, free: 31.45 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.361e-05/0.2008, allocations: 70.73 kB / 292.7 MB, free: 31.38 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.468e-05/0.2008, allocations: 6.562 kB / 292.8 MB, free: 31.38 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.855e-05/0.2008, allocations: 14.62 kB / 292.8 MB, free: 31.38 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00104/0.2019, allocations: 220.3 kB / 293 MB, free: 31.36 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.781e-05/0.2019, allocations: 15.94 kB / 293 MB, free: 31.36 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001037/0.2029, allocations: 177.5 kB / 293.2 MB, free: 31.35 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.497e-05/0.203, allocations: 32.17 kB / 293.2 MB, free: 31.34 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.0002818/0.2033, allocations: 227 kB / 293.4 MB, free: 31.16 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000128/0.2034, allocations: 88.16 kB / 293.5 MB, free: 31.16 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001354/0.2036, allocations: 64.33 kB / 293.6 MB, free: 31.11 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.31e-06/0.2036, allocations: 4.562 kB / 293.6 MB, free: 31.11 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.911e-06/0.2036, allocations: 1.25 kB / 293.6 MB, free: 31.11 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.812e-06/0.2036, allocations: 2.766 kB / 293.6 MB, free: 31.11 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003052/0.2066, allocations: 1.452 MB / 295 MB, free: 30.46 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.458e-06/0.2066, allocations: 0.7031 kB / 295 MB, free: 30.46 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007823/0.2074, allocations: 152.7 kB / 295.2 MB, free: 30.45 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.381e-06/0.2074, allocations: 2.875 kB / 295.2 MB, free: 30.45 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.449e-05/0.2075, allocations: 14.53 kB / 295.2 MB, free: 30.45 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.015e-06/0.2075, allocations: 1.094 kB / 295.2 MB, free: 30.45 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.695e-06/0.2075, allocations: 5.672 kB / 295.2 MB, free: 30.44 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003168/0.2106, allocations: 1.316 MB / 296.5 MB, free: 29.93 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001155/0.2108, allocations: 69.83 kB / 296.6 MB, free: 29.88 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.826e-05/0.2108, allocations: 14.02 kB / 296.6 MB, free: 29.88 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007798/0.2116, allocations: 104.6 kB / 296.7 MB, free: 29.86 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000141/0.2118, allocations: 59.06 kB / 296.8 MB, free: 29.84 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.359e-05/0.2118, allocations: 16.39 kB / 296.8 MB, free: 29.84 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0005155/0.2123, allocations: 365.8 kB / 297.1 MB, free: 29.67 MB / 266.7 MB Notification: Performance of sort global known variables: time 9e-08/0.2123, allocations: 0 / 297.1 MB, free: 29.67 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0006426/0.213, allocations: 179.3 kB / 297.3 MB, free: 29.64 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 0.0001332/0.2131, allocations: 119.2 kB / 297.4 MB, free: 29.54 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.002432/0.2155, allocations: 1.021 MB / 298.5 MB, free: 29.09 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 3.417e-06/0.2155, allocations: 1.094 kB / 298.5 MB, free: 29.09 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001052/0.2166, allocations: 398.8 kB / 298.8 MB, free: 28.98 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006026/0.2172, allocations: 119.9 kB / 299 MB, free: 28.95 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002195/0.2194, allocations: 1.22 MB / 300.2 MB, free: 28.27 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002129/0.2196, allocations: 286.9 kB / 300.5 MB, free: 28.16 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0003718/0.22, allocations: 81.59 kB / 300.5 MB, free: 28.14 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002129/0.2202, allocations: 54.69 kB / 300.6 MB, free: 28.13 MB / 266.7 MB Notification: Performance of SimCode: time 1.413e-06/0.2202, allocations: 0 / 300.6 MB, free: 28.13 MB / 266.7 MB Notification: Performance of Templates: time 0.01188/0.2321, allocations: 8.717 MB / 309.3 MB, free: 21.29 MB / 266.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=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.NandGate.pipe 2>&1) [Timeout 480] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.NandGate.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.721950558014214]