Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.NandGate.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Electrical.Analog.Examples.NandGate") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001434/0.001435, allocations: 103.8 kB / 17.63 MB, free: 5.48 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001669/0.001669, allocations: 214.4 kB / 18.59 MB, free: 4.531 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.614/1.614, allocations: 227.4 MB / 246.8 MB, free: 10.53 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001956/0.001956, allocations: 60.11 kB / 307 MB, free: 0.6016 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1269/0.1289, allocations: 50.55 MB / 357.5 MB, free: 14.05 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.NandGate): time 0.006839/0.1358, allocations: 4.246 MB / 361.8 MB, free: 9.777 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002657/0.1385, allocations: 1.211 MB / 363 MB, free: 8.559 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002758/0.1388, allocations: 15.94 kB / 363 MB, free: 8.543 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002905/0.1392, allocations: 106.9 kB / 363.1 MB, free: 8.438 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004208/0.1396, allocations: 182.3 kB / 363.3 MB, free: 8.258 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007298/0.1403, allocations: 319.5 kB / 363.6 MB, free: 7.945 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001239/0.1416, allocations: 1.093 MB / 364.7 MB, free: 6.848 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004562/0.1421, allocations: 282.6 kB / 365 MB, free: 6.566 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005244/0.1426, allocations: 410.8 kB / 365.4 MB, free: 6.164 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005601/0.1432, allocations: 462.2 kB / 365.8 MB, free: 5.711 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002442/0.1434, allocations: 120 kB / 365.9 MB, free: 5.594 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001815/0.1436, allocations: 116 kB / 366.1 MB, free: 5.48 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000251/0.1439, allocations: 223.4 kB / 366.3 MB, free: 5.262 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004674/0.1443, allocations: 450 kB / 366.7 MB, free: 4.82 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00128/0.1456, allocations: 1.211 MB / 367.9 MB, free: 3.605 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.342e-06/0.1456, allocations: 0 / 367.9 MB, free: 3.605 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.305e-06/0.1457, allocations: 4 kB / 367.9 MB, free: 3.602 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.411e-05/0.1457, allocations: 4 kB / 367.9 MB, free: 3.598 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.003206/0.1489, allocations: 1.255 MB / 369.2 MB, free: 2.277 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.159e-05/0.1489, allocations: 12.03 kB / 369.2 MB, free: 2.266 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001804/0.1491, allocations: 83.98 kB / 369.3 MB, free: 2.184 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006685/0.1498, allocations: 481.5 kB / 369.7 MB, free: 1.672 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.455e-05/0.1499, allocations: 45.69 kB / 369.8 MB, free: 1.629 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001111/0.15, allocations: 56.38 kB / 369.8 MB, free: 1.574 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002279/0.1523, allocations: 0.9723 MB / 370.8 MB, free: 0.5352 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.958e-05/0.1523, allocations: 3.984 kB / 370.8 MB, free: 0.5312 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.257e-05/0.1524, allocations: 28 kB / 370.9 MB, free: 0.5039 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.406e-05/0.1524, allocations: 16 kB / 370.9 MB, free: 500 kB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.2677/0.4201, allocations: 0.9936 MB / 371.9 MB, free: 19.93 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005458/0.4257, allocations: 3.207 MB / 375.1 MB, free: 18.26 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002476/0.4282, allocations: 0.91 MB / 376 MB, free: 17.82 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001192/0.4294, allocations: 436.2 kB / 376.4 MB, free: 17.69 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.215e-05/0.4295, allocations: 19.16 kB / 376.4 MB, free: 17.69 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001443/0.4309, allocations: 470.8 kB / 376.9 MB, free: 17.52 MB / 302.1 MB Notification: Performance of pre-optimization done (n=50): time 3.126e-06/0.4309, allocations: 0 / 376.9 MB, free: 17.52 MB / 302.1 MB Notification: Performance of matching and sorting (n=50): time 0.003674/0.4346, allocations: 1.098 MB / 378 MB, free: 17.17 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001072/0.4347, allocations: 369.8 kB / 378.3 MB, free: 16.73 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009876/0.4357, allocations: 0.5758 MB / 378.9 MB, free: 16.48 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 7.632e-05/0.4358, allocations: 43.39 kB / 379 MB, free: 16.43 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002619/0.4361, allocations: 371.1 kB / 379.3 MB, free: 16.14 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001602/0.4362, allocations: 166.3 kB / 379.5 MB, free: 16.01 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002702/0.4365, allocations: 139.2 kB / 379.6 MB, free: 15.94 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001351/0.4367, allocations: 373.7 kB / 380 MB, free: 15.6 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001271/0.4379, allocations: 402.2 kB / 380.4 MB, free: 15.48 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001476/0.4394, allocations: 0.6758 MB / 381.1 MB, free: 15.01 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002544/0.442, allocations: 0.9743 MB / 382 MB, free: 14.45 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.017e-06/0.442, allocations: 5.406 kB / 382 MB, free: 14.45 MB / 302.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.003179/0.4452, allocations: 1.143 MB / 383.2 MB, free: 14 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.646e-05/0.4453, allocations: 65.73 kB / 383.2 MB, free: 13.94 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.06e-05/0.4453, allocations: 6.25 kB / 383.2 MB, free: 13.94 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.903e-05/0.4453, allocations: 10.78 kB / 383.3 MB, free: 13.94 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001106/0.4465, allocations: 224.8 kB / 383.5 MB, free: 13.91 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.639e-05/0.4465, allocations: 12.42 kB / 383.5 MB, free: 13.91 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001228/0.4477, allocations: 182.9 kB / 383.7 MB, free: 13.86 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.722e-05/0.4478, allocations: 34.69 kB / 383.7 MB, free: 13.85 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.0004162/0.4483, allocations: 228.7 kB / 383.9 MB, free: 13.66 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001256/0.4484, allocations: 76.81 kB / 384 MB, free: 13.62 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001839/0.4486, allocations: 72.58 kB / 384.1 MB, free: 13.58 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.23e-05/0.4486, allocations: 5.094 kB / 384.1 MB, free: 13.58 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.647e-05/0.4486, allocations: 0 / 384.1 MB, free: 13.58 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.345e-05/0.4486, allocations: 2.953 kB / 384.1 MB, free: 13.58 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00366/0.4523, allocations: 1.668 MB / 385.7 MB, free: 12.79 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.76e-06/0.4523, allocations: 5.125 kB / 385.8 MB, free: 12.78 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000812/0.4532, allocations: 145.8 kB / 385.9 MB, free: 12.77 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.654e-06/0.4532, allocations: 2.875 kB / 385.9 MB, free: 12.77 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.104e-05/0.4532, allocations: 18.08 kB / 385.9 MB, free: 12.77 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.45e-06/0.4532, allocations: 2.531 kB / 385.9 MB, free: 12.77 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.644e-06/0.4532, allocations: 0 / 385.9 MB, free: 12.77 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003457/0.4567, allocations: 1.315 MB / 387.2 MB, free: 12.2 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001357/0.4569, allocations: 145.4 kB / 387.4 MB, free: 12.06 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001025/0.457, allocations: 17.31 kB / 387.4 MB, free: 12.05 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007503/0.4577, allocations: 101.8 kB / 387.5 MB, free: 12 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001495/0.4579, allocations: 48.25 kB / 387.5 MB, free: 11.97 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.515e-05/0.4579, allocations: 21.83 kB / 387.6 MB, free: 11.96 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0006159/0.4586, allocations: 402.7 kB / 388 MB, free: 11.73 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.91e-07/0.4586, allocations: 0 / 388 MB, free: 11.73 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.001189/0.4598, allocations: 172.9 kB / 388.1 MB, free: 11.7 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.0002748/0.4601, allocations: 116.7 kB / 388.2 MB, free: 11.59 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.002983/0.463, allocations: 1.024 MB / 389.3 MB, free: 11.04 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 5.56e-06/0.4631, allocations: 1.344 kB / 389.3 MB, free: 11.04 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001148/0.4642, allocations: 409.7 kB / 389.7 MB, free: 10.85 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007043/0.4649, allocations: 106 kB / 389.8 MB, free: 10.8 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002689/0.4676, allocations: 1.248 MB / 391 MB, free: 10.02 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003223/0.468, allocations: 0.8814 MB / 391.9 MB, free: 9.234 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0004348/0.4684, allocations: 91.59 kB / 392 MB, free: 9.191 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002111/0.4686, allocations: 53.94 kB / 392 MB, free: 9.176 MB / 302.1 MB Notification: Performance of SimCode: time 1.142e-06/0.4686, allocations: 0 / 392 MB, free: 9.176 MB / 302.1 MB Notification: Performance of Templates: time 0.01532/0.484, allocations: 8.744 MB / 400.8 MB, free: 3.012 MB / 302.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Analog.Examples.NandGate.makefile (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.NandGate.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.NandGate.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.NandGate.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.NandGate.sim & ./Modelica_trunk_Modelica.Electrical.Analog.Examples.NandGate -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Analog.Examples.NandGate.pipe 2>&1) diffSimulationResults("Modelica_trunk_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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Analog.Examples.NandGate.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches