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.001734/0.001734, allocations: 118.2 kB / 17.78 MB, free: 5.262 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002499/0.002499, allocations: 205.2 kB / 18.74 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.687/1.687, allocations: 227.4 MB / 246.9 MB, free: 10.46 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001432/0.001432, allocations: 55.91 kB / 358.7 MB, free: 12.93 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4156/0.4171, allocations: 50.54 MB / 409.3 MB, free: 1.594 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.NandGate): time 0.005284/0.4224, allocations: 4.251 MB / 413.5 MB, free: 13.33 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002655/0.4251, allocations: 1.219 MB / 414.7 MB, free: 12.1 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003768/0.4255, allocations: 8 kB / 414.7 MB, free: 12.09 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003042/0.4259, allocations: 106.8 kB / 414.8 MB, free: 11.99 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000438/0.4263, allocations: 182.3 kB / 415 MB, free: 11.81 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007499/0.4271, allocations: 331.5 kB / 415.3 MB, free: 11.48 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.00113/0.4282, allocations: 1.093 MB / 416.4 MB, free: 10.39 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004625/0.4287, allocations: 286.6 kB / 416.7 MB, free: 10.1 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005947/0.4293, allocations: 406.8 kB / 417.1 MB, free: 9.699 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005313/0.4298, allocations: 462.3 kB / 417.6 MB, free: 9.246 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001525/0.43, allocations: 120 kB / 417.7 MB, free: 9.129 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001688/0.4302, allocations: 120 kB / 417.8 MB, free: 9.012 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000236/0.4304, allocations: 219.3 kB / 418 MB, free: 8.797 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004186/0.4308, allocations: 450 kB / 418.4 MB, free: 8.355 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00127/0.4321, allocations: 1.226 MB / 419.7 MB, free: 7.129 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.789e-06/0.4321, allocations: 4 kB / 419.7 MB, free: 7.125 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.883e-06/0.4322, allocations: 0 / 419.7 MB, free: 7.125 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.248e-05/0.4322, allocations: 0 / 419.7 MB, free: 7.125 MB / 334.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.002882/0.4351, allocations: 1.278 MB / 421 MB, free: 5.777 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.674e-05/0.4351, allocations: 12.03 kB / 421 MB, free: 5.766 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001773/0.4353, allocations: 84.42 kB / 421 MB, free: 5.684 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007242/0.436, allocations: 489.9 kB / 421.5 MB, free: 5.168 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.919e-05/0.4361, allocations: 45.69 kB / 421.6 MB, free: 5.125 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001145/0.4362, allocations: 56.38 kB / 421.6 MB, free: 5.07 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002255/0.4385, allocations: 0.9684 MB / 422.6 MB, free: 4.039 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.045e-05/0.4385, allocations: 4 kB / 422.6 MB, free: 4.035 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.451e-05/0.4386, allocations: 27.98 kB / 422.6 MB, free: 4.008 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.726e-05/0.4386, allocations: 16 kB / 422.6 MB, free: 3.992 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002851/0.4415, allocations: 1.003 MB / 423.6 MB, free: 2.988 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005674/0.4472, allocations: 3.2 MB / 426.8 MB, free: 15.65 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002426/0.4497, allocations: 0.9162 MB / 427.8 MB, free: 14.69 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001359/0.451, allocations: 444.6 kB / 428.2 MB, free: 14.26 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.844e-05/0.4511, allocations: 20.48 kB / 428.2 MB, free: 14.24 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001301/0.4524, allocations: 461.1 kB / 428.7 MB, free: 13.78 MB / 350.1 MB Notification: Performance of pre-optimization done (n=50): time 3.757e-06/0.4525, allocations: 0 / 428.7 MB, free: 13.78 MB / 350.1 MB Notification: Performance of matching and sorting (n=50): time 0.003383/0.4558, allocations: 1.1 MB / 429.8 MB, free: 12.67 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002291/0.4561, allocations: 376.3 kB / 430.1 MB, free: 12.21 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009452/0.457, allocations: 0.5732 MB / 430.7 MB, free: 11.63 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 7.799e-05/0.4571, allocations: 37.7 kB / 430.7 MB, free: 11.59 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00031/0.4574, allocations: 380.5 kB / 431.1 MB, free: 11.21 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001637/0.4576, allocations: 178.5 kB / 431.3 MB, free: 11.04 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002603/0.4579, allocations: 142.6 kB / 431.4 MB, free: 10.89 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001771/0.4581, allocations: 370.8 kB / 431.8 MB, free: 10.52 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001181/0.4593, allocations: 409.6 kB / 432.2 MB, free: 10.12 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001348/0.4606, allocations: 0.6733 MB / 432.9 MB, free: 9.324 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002318/0.4629, allocations: 0.97 MB / 433.8 MB, free: 8.258 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.234e-06/0.463, allocations: 4 kB / 433.8 MB, free: 8.254 MB / 350.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.002916/0.4659, allocations: 1.138 MB / 435 MB, free: 7.098 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.948e-05/0.466, allocations: 63.41 kB / 435 MB, free: 7.023 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.29e-05/0.466, allocations: 4 kB / 435 MB, free: 7.02 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.698e-05/0.466, allocations: 12 kB / 435.1 MB, free: 7.008 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00101/0.467, allocations: 227.8 kB / 435.3 MB, free: 6.785 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.058e-05/0.4671, allocations: 15.92 kB / 435.3 MB, free: 6.77 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001164/0.4682, allocations: 191.2 kB / 435.5 MB, free: 6.582 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.529e-05/0.4683, allocations: 31.98 kB / 435.5 MB, free: 6.551 MB / 350.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.0004268/0.4688, allocations: 233.5 kB / 435.7 MB, free: 6.312 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001397/0.4689, allocations: 71.58 kB / 435.8 MB, free: 6.242 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001845/0.4691, allocations: 74.41 kB / 435.9 MB, free: 6.16 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.795e-06/0.4691, allocations: 4 kB / 435.9 MB, free: 6.156 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.053e-05/0.4691, allocations: 0 / 435.9 MB, free: 6.156 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.076e-05/0.4691, allocations: 3.984 kB / 435.9 MB, free: 6.152 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003453/0.4726, allocations: 1.681 MB / 437.6 MB, free: 4.414 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.138e-06/0.4726, allocations: 0 / 437.6 MB, free: 4.414 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007573/0.4734, allocations: 147.8 kB / 437.7 MB, free: 4.27 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.135e-06/0.4734, allocations: 4 kB / 437.7 MB, free: 4.266 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.687e-05/0.4735, allocations: 15.98 kB / 437.7 MB, free: 4.25 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.679e-06/0.4735, allocations: 0 / 437.7 MB, free: 4.25 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.067e-06/0.4735, allocations: 3.938 kB / 437.7 MB, free: 4.246 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003293/0.4768, allocations: 1.3 MB / 439 MB, free: 2.93 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002148/0.477, allocations: 152.6 kB / 439.2 MB, free: 2.762 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001008/0.4771, allocations: 12 kB / 439.2 MB, free: 2.75 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007487/0.4779, allocations: 111.9 kB / 439.3 MB, free: 2.641 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001438/0.478, allocations: 52.25 kB / 439.4 MB, free: 2.59 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.379e-05/0.4781, allocations: 12 kB / 439.4 MB, free: 2.578 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0006091/0.4787, allocations: 402.8 kB / 439.8 MB, free: 2.188 MB / 350.1 MB Notification: Performance of sort global known variables: time 3.81e-07/0.4787, allocations: 0 / 439.8 MB, free: 2.188 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006833/0.4794, allocations: 183.8 kB / 439.9 MB, free: 2.008 MB / 350.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.0001896/0.4796, allocations: 118.7 kB / 440.1 MB, free: 1.887 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002557/0.4822, allocations: 0.9974 MB / 441.1 MB, free: 0.8672 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 6.151e-06/0.4822, allocations: 4 kB / 441.1 MB, free: 0.8633 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001089/0.4833, allocations: 402.3 kB / 441.5 MB, free: 480 kB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006576/0.4839, allocations: 114.2 kB / 441.6 MB, free: 364 kB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002508/0.4865, allocations: 1.25 MB / 442.8 MB, free: 15.08 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004309/0.4869, allocations: 0.8824 MB / 443.7 MB, free: 14.17 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0004086/0.4873, allocations: 84.8 kB / 443.8 MB, free: 14.09 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002099/0.4875, allocations: 55.42 kB / 443.8 MB, free: 14.04 MB / 366.1 MB Notification: Performance of SimCode: time 6.91e-07/0.4876, allocations: 0 / 443.8 MB, free: 14.04 MB / 366.1 MB Notification: Performance of Templates: time 0.01706/0.5046, allocations: 8.853 MB / 452.7 MB, free: 5.242 MB / 366.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.0.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