Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Analog.Examples.NandGate.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001193/0.001193, allocations: 83.58 kB / 21.18 MB, free: 3.383 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001079/0.001079, allocations: 161 kB / 24.56 MB, free: 16 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9401/0.9401, allocations: 177.1 MB / 205 MB, free: 5.613 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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.1.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.1.0_Modelica.Electrical.Analog.Examples.NandGate") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.553e-06/1.553e-06, allocations: 0 / 273 MB, free: 1.531 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.509e-05/2.664e-05, allocations: 6.25 kB / 273 MB, free: 1.523 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.NandGate): time 0.005789/0.005816, allocations: 4.17 MB / 277.2 MB, free: 13.34 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.002569/0.008385, allocations: 1.203 MB / 278.4 MB, free: 12.12 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000328/0.008713, allocations: 12 kB / 278.4 MB, free: 12.11 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002691/0.008982, allocations: 102.9 kB / 278.5 MB, free: 12.01 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004661/0.009448, allocations: 202.1 kB / 278.7 MB, free: 11.81 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007789/0.01023, allocations: 343.5 kB / 279 MB, free: 11.48 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.001206/0.01143, allocations: 1.112 MB / 280.1 MB, free: 10.36 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003578/0.01179, allocations: 179.1 kB / 280.3 MB, free: 10.18 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007634/0.01255, allocations: 0.6084 MB / 280.9 MB, free: 9.574 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005437/0.0131, allocations: 367 kB / 281.3 MB, free: 9.215 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001893/0.01329, allocations: 116 kB / 281.4 MB, free: 9.102 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001574/0.01344, allocations: 120 kB / 281.5 MB, free: 8.984 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001827/0.01363, allocations: 235.3 kB / 281.7 MB, free: 8.754 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003669/0.01399, allocations: 315.3 kB / 282 MB, free: 8.445 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0008486/0.01484, allocations: 0.7244 MB / 282.8 MB, free: 7.719 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.137e-06/0.01485, allocations: 0 / 282.8 MB, free: 7.719 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.153e-06/0.01485, allocations: 0 / 282.8 MB, free: 7.719 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.576e-05/0.01486, allocations: 0 / 282.8 MB, free: 7.719 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.002144/0.01701, allocations: 1.22 MB / 284 MB, free: 6.445 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.175e-05/0.01705, allocations: 8.031 kB / 284 MB, free: 6.438 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002373/0.01729, allocations: 136.4 kB / 284.1 MB, free: 6.305 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006314/0.01792, allocations: 430.1 kB / 284.5 MB, free: 5.855 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.151e-05/0.01797, allocations: 45.69 kB / 284.6 MB, free: 5.809 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001138/0.01808, allocations: 60.38 kB / 284.6 MB, free: 5.75 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001548/0.01963, allocations: 1.039 MB / 285.7 MB, free: 4.555 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.877e-05/0.01965, allocations: 4.188 kB / 285.7 MB, free: 4.551 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.78e-05/0.01973, allocations: 32.36 kB / 285.7 MB, free: 4.52 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.843e-05/0.01975, allocations: 15.94 kB / 285.7 MB, free: 4.504 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009171/0.02066, allocations: 361.6 kB / 286.1 MB, free: 4.148 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003669/0.02433, allocations: 3.054 MB / 289.1 MB, free: 0.9688 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009634/0.0253, allocations: 377.2 kB / 289.5 MB, free: 0.5859 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004936/0.02579, allocations: 212.1 kB / 289.7 MB, free: 388 kB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.699e-05/0.02584, allocations: 16.48 kB / 289.7 MB, free: 372 kB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004903/0.02633, allocations: 259.7 kB / 290 MB, free: 96 kB / 266.7 MB Notification: Performance of pre-optimization done (n=50): time 2.765e-06/0.02633, allocations: 0 / 290 MB, free: 96 kB / 266.7 MB Notification: Performance of matching and sorting (n=50): time 0.099/0.1253, allocations: 0.4915 MB / 290.5 MB, free: 26.46 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.158e-05/0.1254, allocations: 374.7 kB / 290.8 MB, free: 26.02 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004392/0.1258, allocations: 0.5231 MB / 291.4 MB, free: 25.85 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 4.931e-05/0.1259, allocations: 41.42 kB / 291.4 MB, free: 25.82 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001653/0.1261, allocations: 429.2 kB / 291.8 MB, free: 25.61 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.902e-05/0.1261, allocations: 174.7 kB / 292 MB, free: 25.52 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001607/0.1263, allocations: 150.5 kB / 292.1 MB, free: 25.49 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 7.989e-05/0.1264, allocations: 0.5363 MB / 292.7 MB, free: 25 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002695/0.1267, allocations: 201.6 kB / 292.9 MB, free: 24.93 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004023/0.1271, allocations: 0.8766 MB / 293.8 MB, free: 24.01 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005536/0.1276, allocations: 0.6196 MB / 294.4 MB, free: 23.61 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.24e-06/0.1276, allocations: 1.031 kB / 294.4 MB, free: 23.61 MB / 266.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.0008566/0.1285, allocations: 0.7432 MB / 295.1 MB, free: 23.41 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.246e-05/0.1285, allocations: 66.36 kB / 295.2 MB, free: 23.34 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.207e-05/0.1285, allocations: 7.078 kB / 295.2 MB, free: 23.34 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.356e-05/0.1286, allocations: 10.06 kB / 295.2 MB, free: 23.34 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005177/0.1291, allocations: 197 kB / 295.4 MB, free: 23.34 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.599e-05/0.1291, allocations: 15.91 kB / 295.4 MB, free: 23.34 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003955/0.1295, allocations: 128.5 kB / 295.5 MB, free: 23.32 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.722e-05/0.1295, allocations: 33.73 kB / 295.6 MB, free: 23.32 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.0001495/0.1297, allocations: 220.2 kB / 295.8 MB, free: 23.14 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.029e-05/0.1298, allocations: 84.11 kB / 295.9 MB, free: 23.11 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.453e-05/0.1298, allocations: 65.75 kB / 295.9 MB, free: 23.09 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.919e-06/0.1298, allocations: 5.281 kB / 295.9 MB, free: 23.09 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.754e-06/0.1298, allocations: 1.5 kB / 295.9 MB, free: 23.09 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.192e-06/0.1299, allocations: 6.562 kB / 295.9 MB, free: 23.09 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001257/0.1311, allocations: 1.064 MB / 297 MB, free: 22.77 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.534e-06/0.1311, allocations: 2.594 kB / 297 MB, free: 22.77 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003394/0.1315, allocations: 118 kB / 297.1 MB, free: 22.77 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.02e-06/0.1315, allocations: 4.281 kB / 297.1 MB, free: 22.77 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.032e-05/0.1315, allocations: 8.734 kB / 297.1 MB, free: 22.76 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.527e-06/0.1315, allocations: 4.141 kB / 297.1 MB, free: 22.76 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.262e-06/0.1315, allocations: 1.312 kB / 297.1 MB, free: 22.76 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008145/0.1323, allocations: 0.6837 MB / 297.8 MB, free: 22.43 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.631e-05/0.1324, allocations: 72.38 kB / 297.9 MB, free: 22.38 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.105e-05/0.1324, allocations: 14.03 kB / 297.9 MB, free: 22.38 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002621/0.1327, allocations: 65 kB / 298 MB, free: 22.36 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001016/0.1328, allocations: 48.72 kB / 298 MB, free: 22.35 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.678e-05/0.1328, allocations: 15.62 kB / 298 MB, free: 22.35 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0002431/0.1331, allocations: 336.1 kB / 298.4 MB, free: 22.18 MB / 266.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.1331, allocations: 0 / 298.4 MB, free: 22.18 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0004169/0.1335, allocations: 186.2 kB / 298.5 MB, free: 22.15 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.0001045/0.1336, allocations: 113.7 kB / 298.7 MB, free: 22.05 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0006948/0.1343, allocations: 0.5961 MB / 299.3 MB, free: 21.76 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.695e-06/0.1343, allocations: 1.125 kB / 299.3 MB, free: 21.76 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002725/0.1345, allocations: 196.8 kB / 299.4 MB, free: 21.72 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003779/0.1349, allocations: 123.5 kB / 299.6 MB, free: 21.68 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001497/0.1364, allocations: 1.053 MB / 300.6 MB, free: 21.09 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.557e-05/0.1365, allocations: 132.4 kB / 300.7 MB, free: 21 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0002249/0.1367, allocations: 78.78 kB / 300.8 MB, free: 20.98 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001508/0.1369, allocations: 56.48 kB / 300.9 MB, free: 20.96 MB / 266.7 MB Notification: Performance of SimCode: time 7.92e-07/0.1369, allocations: 0 / 300.9 MB, free: 20.96 MB / 266.7 MB Notification: Performance of Templates: time 0.009971/0.1469, allocations: 9.244 MB / 310.1 MB, free: 15.84 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Analog.Examples.NandGate.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Analog.Examples.NandGate.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Analog.Examples.NandGate.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Analog.Examples.NandGate.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Analog.Examples.NandGate.sim & ./Modelica_4.1.0_Modelica.Electrical.Analog.Examples.NandGate -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Analog.Examples.NandGate.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_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.850410826969892]