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.0009326/0.0009327, allocations: 95.23 kB / 16.65 MB, free: 6.535 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.001128/0.001129, allocations: 175.4 kB / 17.56 MB, free: 6.18 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.596/1.596, allocations: 223.3 MB / 241.6 MB, free: 14.47 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003086/0.0003089, allocations: 4.188 kB / 301.4 MB, free: 5.883 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1185/0.1188, allocations: 50.42 MB / 351.8 MB, free: 3.453 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.NandGate): time 0.004425/0.1233, allocations: 3.83 MB / 355.7 MB, free: 15.6 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.00254/0.1259, allocations: 1.172 MB / 356.8 MB, free: 14.42 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003506/0.1263, allocations: 11.94 kB / 356.8 MB, free: 14.41 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000245/0.1265, allocations: 79.33 kB / 356.9 MB, free: 14.33 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003847/0.1269, allocations: 146.8 kB / 357.1 MB, free: 14.18 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006619/0.1276, allocations: 291.7 kB / 357.4 MB, free: 13.9 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009462/0.1286, allocations: 1.011 MB / 358.4 MB, free: 12.88 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004094/0.129, allocations: 239.5 kB / 358.6 MB, free: 12.64 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000379/0.1294, allocations: 326.8 kB / 358.9 MB, free: 12.32 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004411/0.1298, allocations: 402.2 kB / 359.3 MB, free: 11.93 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 9.962e-05/0.1299, allocations: 52 kB / 359.4 MB, free: 11.88 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.943e-05/0.13, allocations: 48 kB / 359.4 MB, free: 11.83 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000142/0.1302, allocations: 151.3 kB / 359.6 MB, free: 11.68 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003439/0.1305, allocations: 399.8 kB / 359.9 MB, free: 11.29 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009564/0.1315, allocations: 1.129 MB / 361.1 MB, free: 10.15 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.986e-06/0.1315, allocations: 7.922 kB / 361.1 MB, free: 10.14 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.785e-06/0.1315, allocations: 0 / 361.1 MB, free: 10.14 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.208e-05/0.1315, allocations: 0 / 361.1 MB, free: 10.14 MB / 302.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.002863/0.1344, allocations: 1.197 MB / 362.3 MB, free: 8.883 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.365e-05/0.1345, allocations: 8.031 kB / 362.3 MB, free: 8.875 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001611/0.1346, allocations: 84 kB / 362.4 MB, free: 8.793 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005666/0.1352, allocations: 473.5 kB / 362.8 MB, free: 8.289 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.55e-05/0.1353, allocations: 45.69 kB / 362.9 MB, free: 8.246 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001109/0.1354, allocations: 64.36 kB / 362.9 MB, free: 8.184 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002368/0.1378, allocations: 1.05 MB / 364 MB, free: 7.066 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.75e-05/0.1378, allocations: 0 / 364 MB, free: 7.066 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.763e-05/0.1379, allocations: 31.92 kB / 364 MB, free: 7.035 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.508e-05/0.1379, allocations: 12 kB / 364 MB, free: 7.023 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00319/0.1411, allocations: 1.163 MB / 365.2 MB, free: 5.863 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005474/0.1466, allocations: 3.274 MB / 368.5 MB, free: 2.457 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002597/0.1492, allocations: 1.033 MB / 369.5 MB, free: 1.379 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001307/0.1505, allocations: 497.8 kB / 370 MB, free: 0.8867 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.566e-05/0.1506, allocations: 16.48 kB / 370 MB, free: 0.8711 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001421/0.152, allocations: 0.5166 MB / 370.5 MB, free: 348 kB / 302.1 MB Notification: Performance of pre-optimization done (n=50): time 3.887e-06/0.1521, allocations: 0 / 370.5 MB, free: 348 kB / 302.1 MB Notification: Performance of matching and sorting (n=50): time 0.2587/0.4108, allocations: 1.264 MB / 371.8 MB, free: 24.55 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001353/0.411, allocations: 374.1 kB / 372.1 MB, free: 24.12 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001055/0.412, allocations: 0.5751 MB / 372.7 MB, free: 24 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 7.038e-05/0.4121, allocations: 40.75 kB / 372.8 MB, free: 23.97 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002628/0.4124, allocations: 371.4 kB / 373.1 MB, free: 23.82 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001404/0.4125, allocations: 170.9 kB / 373.3 MB, free: 23.72 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001066/0.4127, allocations: 62.16 kB / 373.4 MB, free: 23.71 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001319/0.4128, allocations: 372.3 kB / 373.7 MB, free: 23.39 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001457/0.4143, allocations: 462.9 kB / 374.2 MB, free: 23.39 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001691/0.416, allocations: 0.7392 MB / 374.9 MB, free: 23.06 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002565/0.4185, allocations: 1.085 MB / 376 MB, free: 22.64 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.588e-06/0.4186, allocations: 3.062 kB / 376 MB, free: 22.64 MB / 302.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.003857/0.4224, allocations: 1.255 MB / 377.3 MB, free: 22.18 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.383e-05/0.4225, allocations: 66.41 kB / 377.3 MB, free: 22.11 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.847e-05/0.4225, allocations: 6.438 kB / 377.3 MB, free: 22.11 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.745e-05/0.4226, allocations: 10.53 kB / 377.3 MB, free: 22.11 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001176/0.4238, allocations: 255.7 kB / 377.6 MB, free: 22.09 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.917e-05/0.4238, allocations: 19.81 kB / 377.6 MB, free: 22.08 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001253/0.4251, allocations: 221 kB / 377.8 MB, free: 22.02 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.49e-05/0.4252, allocations: 33.38 kB / 377.9 MB, free: 22.01 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 (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.0003815/0.4256, allocations: 234.8 kB / 378.1 MB, free: 21.82 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001139/0.4257, allocations: 71.84 kB / 378.2 MB, free: 21.78 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001803/0.4259, allocations: 67.42 kB / 378.2 MB, free: 21.74 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.194e-05/0.4259, allocations: 4.25 kB / 378.2 MB, free: 21.74 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.975e-05/0.4259, allocations: 1.062 kB / 378.2 MB, free: 21.74 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.997e-06/0.4259, allocations: 3.375 kB / 378.2 MB, free: 21.74 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003979/0.4299, allocations: 1.792 MB / 380 MB, free: 20.93 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.624e-06/0.4299, allocations: 1.719 kB / 380 MB, free: 20.93 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009114/0.4309, allocations: 176 kB / 380.2 MB, free: 20.92 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.989e-06/0.4309, allocations: 5.781 kB / 380.2 MB, free: 20.91 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.672e-05/0.4309, allocations: 15.8 kB / 380.2 MB, free: 20.91 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.143e-06/0.431, allocations: 1.781 kB / 380.2 MB, free: 20.91 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.405e-06/0.431, allocations: 0 / 380.2 MB, free: 20.91 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004831/0.4358, allocations: 1.477 MB / 381.7 MB, free: 20.36 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003686/0.4362, allocations: 142.1 kB / 381.8 MB, free: 20.23 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001363/0.4363, allocations: 14.22 kB / 381.8 MB, free: 20.22 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001041/0.4374, allocations: 146.8 kB / 382 MB, free: 20.2 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002026/0.4376, allocations: 49.94 kB / 382 MB, free: 20.19 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.168e-05/0.4377, allocations: 16.78 kB / 382.1 MB, free: 20.19 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0009308/0.4386, allocations: 406 kB / 382.4 MB, free: 20 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4386, allocations: 0 / 382.4 MB, free: 20 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.001055/0.4397, allocations: 181.3 kB / 382.6 MB, free: 19.97 MB / 302.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 (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.0002588/0.4399, allocations: 120.6 kB / 382.7 MB, free: 19.87 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.003508/0.4435, allocations: 1.117 MB / 383.9 MB, free: 19.46 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 6.923e-06/0.4435, allocations: 1.312 kB / 383.9 MB, free: 19.46 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0015/0.445, allocations: 473.7 kB / 384.3 MB, free: 19.34 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007561/0.4458, allocations: 94.72 kB / 384.4 MB, free: 19.3 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003225/0.449, allocations: 1.58 MB / 386 MB, free: 18.36 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005434/0.4496, allocations: 0.8862 MB / 386.9 MB, free: 17.65 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0005562/0.4501, allocations: 89.12 kB / 387 MB, free: 17.62 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002369/0.4504, allocations: 51.8 kB / 387 MB, free: 17.61 MB / 302.1 MB Notification: Performance of SimCode: time 2.124e-06/0.4504, allocations: 0 / 387 MB, free: 17.61 MB / 302.1 MB Notification: Performance of Templates: time 0.014/0.4644, allocations: 7.96 MB / 395 MB, free: 13.16 MB / 302.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","/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) Reference file matches