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) 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.Analog.Examples.NandGate,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,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=5000,variableFilter="time|Nand.C4.v|Nand.C7.v",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.NandGate") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001065/0.001065, allocations: 92.34 kB / 16.3 MB, free: 5.992 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.001248/0.001248, allocations: 182.1 kB / 17.2 MB, free: 5.906 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.532/1.532, allocations: 223.2 MB / 241.1 MB, free: 5.469 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002911/0.0002911, allocations: 12.25 kB / 300.7 MB, free: 6.07 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1119/0.1122, allocations: 50.42 MB / 351.1 MB, free: 11.79 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.NandGate): time 0.003457/0.1157, allocations: 3.415 MB / 354.5 MB, free: 8.352 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001591/0.1173, allocations: 1.18 MB / 355.7 MB, free: 7.164 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002076/0.1175, allocations: 12 kB / 355.7 MB, free: 7.152 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001014/0.1176, allocations: 71.39 kB / 355.8 MB, free: 7.082 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003263/0.118, allocations: 195.4 kB / 356 MB, free: 6.891 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004276/0.1184, allocations: 195.7 kB / 356.2 MB, free: 6.699 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.000637/0.119, allocations: 0.6187 MB / 356.8 MB, free: 6.078 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003275/0.1194, allocations: 219.8 kB / 357 MB, free: 5.852 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003025/0.1197, allocations: 315 kB / 357.3 MB, free: 5.543 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003904/0.1201, allocations: 398.3 kB / 357.7 MB, free: 5.152 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 7.962e-05/0.1202, allocations: 48 kB / 357.8 MB, free: 5.105 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.138e-05/0.1203, allocations: 48 kB / 357.8 MB, free: 5.059 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001368/0.1204, allocations: 151.5 kB / 358 MB, free: 4.91 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001342/0.1206, allocations: 161.3 kB / 358.1 MB, free: 4.746 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007454/0.1213, allocations: 0.9232 MB / 359 MB, free: 3.82 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.056e-06/0.1213, allocations: 0 / 359 MB, free: 3.82 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.513e-06/0.1213, allocations: 0 / 359 MB, free: 3.82 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.014e-05/0.1213, allocations: 0 / 359 MB, free: 3.82 MB / 286.1 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.002591/0.1239, allocations: 1.204 MB / 360.3 MB, free: 2.551 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.808e-05/0.124, allocations: 15.95 kB / 360.3 MB, free: 2.535 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001454/0.1241, allocations: 87.02 kB / 360.4 MB, free: 2.449 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005606/0.1247, allocations: 456.6 kB / 360.8 MB, free: 1.961 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.536e-05/0.1248, allocations: 41.31 kB / 360.8 MB, free: 1.922 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.128e-05/0.1249, allocations: 63.94 kB / 360.9 MB, free: 1.859 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002055/0.1269, allocations: 1.035 MB / 361.9 MB, free: 0.7539 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.521e-05/0.1269, allocations: 4 kB / 361.9 MB, free: 0.75 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.276e-05/0.127, allocations: 28 kB / 362 MB, free: 0.7227 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.563e-05/0.127, allocations: 16 kB / 362 MB, free: 0.707 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002896/0.1299, allocations: 1.155 MB / 363.1 MB, free: 15.55 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004353/0.1343, allocations: 3.278 MB / 366.4 MB, free: 12.14 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002268/0.1366, allocations: 1.039 MB / 367.5 MB, free: 11.06 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.588e-05/0.1366, allocations: 12.5 kB / 367.5 MB, free: 11.05 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001217/0.1379, allocations: 0.5089 MB / 368 MB, free: 10.53 MB / 302.1 MB Notification: Performance of pre-optimization done (n=50): time 2.695e-06/0.1379, allocations: 0 / 368 MB, free: 10.53 MB / 302.1 MB Notification: Performance of matching and sorting (n=50): time 0.003206/0.1411, allocations: 1.279 MB / 369.3 MB, free: 9.242 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001742/0.1413, allocations: 376.3 kB / 369.6 MB, free: 8.789 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007598/0.142, allocations: 0.5654 MB / 370.2 MB, free: 8.215 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.95e-05/0.1421, allocations: 37.7 kB / 370.2 MB, free: 8.172 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002582/0.1424, allocations: 379.4 kB / 370.6 MB, free: 7.793 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001321/0.1425, allocations: 169.6 kB / 370.8 MB, free: 7.625 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.416e-05/0.1426, allocations: 16 kB / 370.8 MB, free: 7.609 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001463/0.1427, allocations: 370.8 kB / 371.1 MB, free: 7.238 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00118/0.1439, allocations: 461.7 kB / 371.6 MB, free: 6.789 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001394/0.1453, allocations: 0.7319 MB / 372.3 MB, free: 5.934 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001233/0.1466, allocations: 0.5285 MB / 372.8 MB, free: 5.395 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.931e-06/0.1466, allocations: 4 kB / 372.9 MB, free: 5.391 MB / 302.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.002823/0.1494, allocations: 1.239 MB / 374.1 MB, free: 4.129 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.452e-05/0.1495, allocations: 71.67 kB / 374.2 MB, free: 4.047 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.28e-05/0.1495, allocations: 8 kB / 374.2 MB, free: 4.039 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.995e-05/0.1495, allocations: 8 kB / 374.2 MB, free: 4.031 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001012/0.1505, allocations: 251.6 kB / 374.4 MB, free: 3.785 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.625e-05/0.1506, allocations: 11.94 kB / 374.4 MB, free: 3.773 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001022/0.1516, allocations: 234.9 kB / 374.7 MB, free: 3.543 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.526e-05/0.1517, allocations: 36 kB / 374.7 MB, free: 3.508 MB / 302.1 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 ($whenCondition2,$whenCondition1,$PRE.VIN1.signalSource.T_start,VIN1.signalSource.T_start,$PRE.VIN1.signalSource.count,VIN1.signalSource.count,$PRE.VIN2.signalSource.T_start,VIN2.signalSource.T_start,$PRE.VIN2.signalSource.count,VIN2.signalSource.count) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002918/0.152, allocations: 225.6 kB / 374.9 MB, free: 3.277 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.564e-05/0.152, allocations: 63.25 kB / 375 MB, free: 3.215 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001367/0.1522, allocations: 70.41 kB / 375.1 MB, free: 3.148 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.941e-06/0.1522, allocations: 7.938 kB / 375.1 MB, free: 3.141 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.524e-06/0.1522, allocations: 0 / 375.1 MB, free: 3.141 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.631e-06/0.1522, allocations: 8 kB / 375.1 MB, free: 3.133 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003156/0.1554, allocations: 1.778 MB / 376.8 MB, free: 1.297 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.445e-06/0.1554, allocations: 3.938 kB / 376.8 MB, free: 1.293 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007713/0.1562, allocations: 183.8 kB / 377 MB, free: 1.113 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.049e-06/0.1562, allocations: 4 kB / 377 MB, free: 1.109 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.983e-05/0.1562, allocations: 11.95 kB / 377 MB, free: 1.098 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.394e-06/0.1563, allocations: 0 / 377 MB, free: 1.098 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.302e-06/0.1563, allocations: 0 / 377 MB, free: 1.098 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003244/0.1595, allocations: 1.47 MB / 378.5 MB, free: 15.61 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001322/0.1597, allocations: 152.2 kB / 378.7 MB, free: 15.44 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.863e-05/0.1598, allocations: 15.98 kB / 378.7 MB, free: 15.43 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007762/0.1605, allocations: 147.9 kB / 378.8 MB, free: 15.28 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001249/0.1607, allocations: 52.36 kB / 378.9 MB, free: 15.23 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.504e-05/0.1607, allocations: 11.94 kB / 378.9 MB, free: 15.22 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0005121/0.1612, allocations: 402.8 kB / 379.3 MB, free: 14.83 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.503e-06/0.1612, allocations: 0 / 379.3 MB, free: 14.83 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0005674/0.1618, allocations: 179.7 kB / 379.5 MB, free: 14.65 MB / 318.1 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001479/0.162, allocations: 123.2 kB / 379.6 MB, free: 14.52 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.002442/0.1644, allocations: 1.106 MB / 380.7 MB, free: 13.39 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.435e-06/0.1644, allocations: 4 kB / 380.7 MB, free: 13.39 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001062/0.1655, allocations: 475.3 kB / 381.1 MB, free: 12.93 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004608/0.166, allocations: 100.3 kB / 381.2 MB, free: 12.83 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002308/0.1683, allocations: 1.496 MB / 382.7 MB, free: 11.32 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004215/0.1687, allocations: 0.8979 MB / 383.6 MB, free: 10.39 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0003954/0.1691, allocations: 88.84 kB / 383.7 MB, free: 10.3 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000185/0.1693, allocations: 51.42 kB / 383.8 MB, free: 10.25 MB / 318.1 MB Notification: Performance of SimCode: time 4.41e-07/0.1693, allocations: 0 / 383.8 MB, free: 10.25 MB / 318.1 MB Notification: Performance of Templates: time 0.01162/0.181, allocations: 7.546 MB / 391.3 MB, free: 2.773 MB / 318.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.NandGate.makefile (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) 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","../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.NandGate.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches