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.00145/0.00145, allocations: 106.6 kB / 16.51 MB, free: 6.707 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.001319/0.001319, allocations: 190.5 kB / 17.43 MB, free: 6.066 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.541/1.541, allocations: 222.9 MB / 241.1 MB, free: 13.79 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001114/0.001114, allocations: 49.48 kB / 299.9 MB, free: 6.105 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1058/0.1069, allocations: 49.45 MB / 349.4 MB, free: 4.652 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.NandGate): time 0.005102/0.1121, allocations: 4.24 MB / 353.6 MB, free: 392 kB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002094/0.1142, allocations: 1.184 MB / 354.8 MB, free: 15.19 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002642/0.1145, allocations: 12 kB / 354.8 MB, free: 15.18 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000247/0.1147, allocations: 75.33 kB / 354.9 MB, free: 15.11 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000366/0.1152, allocations: 158.7 kB / 355.1 MB, free: 14.95 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005964/0.1158, allocations: 279.8 kB / 355.3 MB, free: 14.68 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.000894/0.1167, allocations: 1.003 MB / 356.3 MB, free: 13.67 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00037/0.117, allocations: 243.5 kB / 356.6 MB, free: 13.43 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003827/0.1174, allocations: 350.8 kB / 356.9 MB, free: 13.08 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004086/0.1179, allocations: 422.1 kB / 357.3 MB, free: 12.67 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000104/0.118, allocations: 60 kB / 357.4 MB, free: 12.61 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001235/0.1181, allocations: 56 kB / 357.4 MB, free: 12.55 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001599/0.1183, allocations: 167.4 kB / 357.6 MB, free: 12.39 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003825/0.1187, allocations: 393.9 kB / 358 MB, free: 12 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008814/0.1195, allocations: 1.153 MB / 359.1 MB, free: 10.85 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.787e-06/0.1196, allocations: 0 / 359.1 MB, free: 10.85 MB / 302.1 MB Notification: Performance of FrontEnd: time 7.11e-07/0.1196, allocations: 0 / 359.1 MB, free: 10.85 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.558e-06/0.1196, allocations: 0 / 359.1 MB, free: 10.85 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.002969/0.1226, allocations: 1.269 MB / 360.4 MB, free: 9.516 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.171e-05/0.1226, allocations: 8.031 kB / 360.4 MB, free: 9.508 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001769/0.1228, allocations: 84 kB / 360.5 MB, free: 9.426 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006345/0.1234, allocations: 473.5 kB / 361 MB, free: 8.922 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.376e-05/0.1235, allocations: 45.69 kB / 361 MB, free: 8.879 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001191/0.1236, allocations: 60.36 kB / 361.1 MB, free: 8.82 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002241/0.1259, allocations: 0.9645 MB / 362 MB, free: 7.789 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.689e-05/0.1259, allocations: 0 / 362 MB, free: 7.789 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.203e-05/0.126, allocations: 31.98 kB / 362.1 MB, free: 7.758 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.591e-05/0.126, allocations: 16 kB / 362.1 MB, free: 7.742 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002762/0.1288, allocations: 0.9991 MB / 363.1 MB, free: 6.746 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004941/0.1337, allocations: 3.211 MB / 366.3 MB, free: 3.402 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002252/0.136, allocations: 0.9045 MB / 367.2 MB, free: 2.453 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001156/0.1372, allocations: 441.8 kB / 367.6 MB, free: 2.016 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.403e-05/0.1372, allocations: 16.41 kB / 367.6 MB, free: 2 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001231/0.1385, allocations: 461.1 kB / 368.1 MB, free: 1.535 MB / 302.1 MB Notification: Performance of pre-optimization done (n=50): time 2.806e-06/0.1385, allocations: 0 / 368.1 MB, free: 1.535 MB / 302.1 MB Notification: Performance of matching and sorting (n=50): time 0.003151/0.1417, allocations: 1.103 MB / 369.2 MB, free: 440 kB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.1882/0.3298, allocations: 372.3 kB / 369.6 MB, free: 25.85 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001085/0.3309, allocations: 0.5689 MB / 370.1 MB, free: 25.73 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001894/0.3311, allocations: 37.52 kB / 370.2 MB, free: 25.7 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002468/0.3314, allocations: 368.7 kB / 370.5 MB, free: 25.6 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002015/0.3316, allocations: 168.8 kB / 370.7 MB, free: 25.5 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002941/0.3319, allocations: 139.2 kB / 370.8 MB, free: 25.48 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001154/0.332, allocations: 375.4 kB / 371.2 MB, free: 25.16 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001225/0.3333, allocations: 402.1 kB / 371.6 MB, free: 25.16 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001389/0.3347, allocations: 0.68 MB / 372.3 MB, free: 24.77 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002205/0.3369, allocations: 0.9693 MB / 373.2 MB, free: 24.25 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.887e-06/0.3369, allocations: 6.172 kB / 373.2 MB, free: 24.25 MB / 302.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.002946/0.3399, allocations: 1.139 MB / 374.4 MB, free: 23.8 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.043e-05/0.3399, allocations: 66.5 kB / 374.4 MB, free: 23.74 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.272e-05/0.3399, allocations: 6.75 kB / 374.4 MB, free: 23.74 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.503e-05/0.34, allocations: 9.625 kB / 374.5 MB, free: 23.74 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001008/0.341, allocations: 226.3 kB / 374.7 MB, free: 23.71 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.306e-05/0.341, allocations: 14.88 kB / 374.7 MB, free: 23.71 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001068/0.3421, allocations: 181.3 kB / 374.9 MB, free: 23.66 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.255e-05/0.3422, allocations: 31.98 kB / 374.9 MB, free: 23.65 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.000297/0.3425, allocations: 226.6 kB / 375.1 MB, free: 23.46 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.742e-05/0.3426, allocations: 68.91 kB / 375.2 MB, free: 23.43 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001378/0.3427, allocations: 80.16 kB / 375.3 MB, free: 23.38 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.394e-06/0.3427, allocations: 5.5 kB / 375.3 MB, free: 23.38 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.016e-05/0.3428, allocations: 0 / 375.3 MB, free: 23.38 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.084e-05/0.3428, allocations: 2.578 kB / 375.3 MB, free: 23.38 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003418/0.3462, allocations: 1.676 MB / 377 MB, free: 22.59 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.137e-06/0.3462, allocations: 0 / 377 MB, free: 22.59 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008106/0.347, allocations: 150.3 kB / 377.1 MB, free: 22.57 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.167e-06/0.3471, allocations: 2.25 kB / 377.1 MB, free: 22.57 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.549e-05/0.3471, allocations: 9.812 kB / 377.1 MB, free: 22.57 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.659e-06/0.3471, allocations: 2.719 kB / 377.1 MB, free: 22.57 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.374e-06/0.3471, allocations: 0 / 377.1 MB, free: 22.57 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003381/0.3505, allocations: 1.301 MB / 378.4 MB, free: 22.05 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002128/0.3507, allocations: 142.5 kB / 378.6 MB, free: 21.91 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001148/0.3509, allocations: 13.08 kB / 378.6 MB, free: 21.91 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008155/0.3517, allocations: 108.6 kB / 378.7 MB, free: 21.89 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001712/0.3519, allocations: 51.11 kB / 378.7 MB, free: 21.88 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.314e-05/0.3519, allocations: 17 kB / 378.7 MB, free: 21.88 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0007037/0.3526, allocations: 408.6 kB / 379.1 MB, free: 21.69 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.3527, allocations: 1.219 kB / 379.1 MB, free: 21.69 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0008095/0.3535, allocations: 179.6 kB / 379.3 MB, free: 21.66 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.0001718/0.3536, allocations: 116.1 kB / 379.4 MB, free: 21.56 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.002905/0.3566, allocations: 0.9938 MB / 380.4 MB, free: 21.18 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 7.234e-06/0.3566, allocations: 6.656 kB / 380.4 MB, free: 21.18 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001226/0.3578, allocations: 411 kB / 380.8 MB, free: 21.06 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007131/0.3586, allocations: 101.3 kB / 380.9 MB, free: 21.02 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00293/0.3615, allocations: 1.5 MB / 382.4 MB, free: 20.09 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004606/0.362, allocations: 0.8814 MB / 383.3 MB, free: 19.38 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0005727/0.3626, allocations: 88.72 kB / 383.4 MB, free: 19.36 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002556/0.3628, allocations: 51.38 kB / 383.4 MB, free: 19.35 MB / 302.1 MB Notification: Performance of SimCode: time 1.072e-06/0.3628, allocations: 0.5938 kB / 383.4 MB, free: 19.35 MB / 302.1 MB Notification: Performance of Templates: time 0.01641/0.3792, allocations: 8.026 MB / 391.5 MB, free: 16.09 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