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.002193/0.002193, allocations: 103.2 kB / 17.2 MB, free: 6.289 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002678/0.002678, allocations: 209.8 kB / 18.14 MB, free: 5.371 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.513/1.513, allocations: 227.4 MB / 246.3 MB, free: 9.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001532/0.001532, allocations: 63.89 kB / 306.3 MB, free: 0.8672 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1439/0.1454, allocations: 50.55 MB / 356.8 MB, free: 14.32 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.NandGate): time 0.007583/0.1531, allocations: 4.264 MB / 361.1 MB, free: 10.04 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.00314/0.1563, allocations: 1.211 MB / 362.3 MB, free: 8.816 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007127/0.157, allocations: 15.94 kB / 362.3 MB, free: 8.801 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004475/0.1575, allocations: 71.39 kB / 362.4 MB, free: 8.73 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008069/0.1584, allocations: 154.7 kB / 362.5 MB, free: 8.578 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009833/0.1594, allocations: 287.8 kB / 362.8 MB, free: 8.297 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001582/0.161, allocations: 1.007 MB / 363.8 MB, free: 7.285 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004541/0.1614, allocations: 247.5 kB / 364 MB, free: 7.043 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005294/0.162, allocations: 342.8 kB / 364.4 MB, free: 6.707 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004427/0.1624, allocations: 422.2 kB / 364.8 MB, free: 6.293 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001185/0.1625, allocations: 60 kB / 364.8 MB, free: 6.234 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000122/0.1627, allocations: 56 kB / 364.9 MB, free: 6.18 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001658/0.1628, allocations: 167.3 kB / 365.1 MB, free: 6.016 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003713/0.1632, allocations: 390 kB / 365.4 MB, free: 5.633 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00101/0.1642, allocations: 1.161 MB / 366.6 MB, free: 4.469 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.39e-06/0.1642, allocations: 0 / 366.6 MB, free: 4.469 MB / 302.1 MB Notification: Performance of FrontEnd: time 8.21e-07/0.1643, allocations: 0 / 366.6 MB, free: 4.469 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.012e-05/0.1643, allocations: 0 / 366.6 MB, free: 4.469 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.003261/0.1675, allocations: 1.266 MB / 367.9 MB, free: 3.137 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 8.471e-05/0.1676, allocations: 8.031 kB / 367.9 MB, free: 3.129 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002257/0.1679, allocations: 88 kB / 368 MB, free: 3.043 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007445/0.1686, allocations: 473.6 kB / 368.4 MB, free: 2.539 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.183e-05/0.1687, allocations: 45.69 kB / 368.5 MB, free: 2.492 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001144/0.1688, allocations: 60.38 kB / 368.5 MB, free: 2.434 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002323/0.1711, allocations: 0.9645 MB / 369.5 MB, free: 1.406 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.854e-05/0.1712, allocations: 0 / 369.5 MB, free: 1.406 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.823e-05/0.1713, allocations: 31.98 kB / 369.5 MB, free: 1.375 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.789e-05/0.1713, allocations: 16 kB / 369.5 MB, free: 1.359 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002894/0.1742, allocations: 1.003 MB / 370.5 MB, free: 368 kB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2345/0.4087, allocations: 3.196 MB / 373.7 MB, free: 18.41 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002398/0.4112, allocations: 0.9094 MB / 374.7 MB, free: 17.98 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001233/0.4124, allocations: 434.5 kB / 375.1 MB, free: 17.85 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.741e-05/0.4125, allocations: 14.84 kB / 375.1 MB, free: 17.85 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001281/0.4138, allocations: 469.5 kB / 375.5 MB, free: 17.7 MB / 302.1 MB Notification: Performance of pre-optimization done (n=50): time 2.855e-06/0.4138, allocations: 1.438 kB / 375.6 MB, free: 17.7 MB / 302.1 MB Notification: Performance of matching and sorting (n=50): time 0.003072/0.4169, allocations: 1.099 MB / 376.7 MB, free: 17.35 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001151/0.417, allocations: 369.8 kB / 377 MB, free: 16.91 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008386/0.4178, allocations: 0.5801 MB / 377.6 MB, free: 16.65 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 6.312e-05/0.4179, allocations: 39.55 kB / 377.6 MB, free: 16.61 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002526/0.4182, allocations: 373.4 kB / 378 MB, free: 16.33 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001332/0.4183, allocations: 171.7 kB / 378.2 MB, free: 16.2 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002587/0.4186, allocations: 137.1 kB / 378.3 MB, free: 16.13 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001264/0.4187, allocations: 373.3 kB / 378.7 MB, free: 15.79 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001244/0.42, allocations: 402 kB / 379.1 MB, free: 15.67 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001343/0.4213, allocations: 0.6812 MB / 379.7 MB, free: 15.2 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002209/0.4235, allocations: 0.9745 MB / 380.7 MB, free: 14.63 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.34e-06/0.4236, allocations: 2.344 kB / 380.7 MB, free: 14.63 MB / 302.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.002797/0.4264, allocations: 1.135 MB / 381.8 MB, free: 14.19 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.722e-05/0.4264, allocations: 70.36 kB / 381.9 MB, free: 14.12 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.617e-05/0.4264, allocations: 7.5 kB / 381.9 MB, free: 14.12 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.868e-05/0.4265, allocations: 9.828 kB / 381.9 MB, free: 14.12 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001081/0.4276, allocations: 220.5 kB / 382.1 MB, free: 14.1 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.569e-05/0.4276, allocations: 16.23 kB / 382.2 MB, free: 14.1 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001126/0.4288, allocations: 186.4 kB / 382.3 MB, free: 14.04 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.106e-05/0.4288, allocations: 35.42 kB / 382.4 MB, free: 14.03 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.0003211/0.4292, allocations: 223.7 kB / 382.6 MB, free: 13.85 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000107/0.4293, allocations: 69.25 kB / 382.7 MB, free: 13.82 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001468/0.4294, allocations: 78.95 kB / 382.7 MB, free: 13.77 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.839e-06/0.4295, allocations: 6.172 kB / 382.7 MB, free: 13.77 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.235e-05/0.4295, allocations: 0 / 382.7 MB, free: 13.77 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.107e-06/0.4295, allocations: 2.906 kB / 382.8 MB, free: 13.77 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003589/0.4331, allocations: 1.663 MB / 384.4 MB, free: 12.98 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.819e-06/0.4331, allocations: 2.031 kB / 384.4 MB, free: 12.98 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008529/0.434, allocations: 157.7 kB / 384.6 MB, free: 12.96 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.895e-06/0.434, allocations: 2.219 kB / 384.6 MB, free: 12.96 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.424e-05/0.434, allocations: 10.19 kB / 384.6 MB, free: 12.95 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.652e-06/0.4341, allocations: 2.344 kB / 384.6 MB, free: 12.95 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.565e-06/0.4341, allocations: 1 kB / 384.6 MB, free: 12.95 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003566/0.4376, allocations: 1.299 MB / 385.9 MB, free: 12.44 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000169/0.4378, allocations: 152.7 kB / 386 MB, free: 12.3 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001137/0.4379, allocations: 14.53 kB / 386 MB, free: 12.29 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008019/0.4387, allocations: 106.4 kB / 386.2 MB, free: 12.28 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002035/0.439, allocations: 44.7 kB / 386.2 MB, free: 12.27 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.625e-05/0.439, allocations: 14.69 kB / 386.2 MB, free: 12.26 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0008219/0.4398, allocations: 406 kB / 386.6 MB, free: 12.08 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4399, allocations: 0 / 386.6 MB, free: 12.08 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.00147/0.4413, allocations: 180.3 kB / 386.8 MB, free: 12.04 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.000261/0.4416, allocations: 123.1 kB / 386.9 MB, free: 11.94 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.003055/0.4447, allocations: 0.9932 MB / 387.9 MB, free: 11.48 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 5.089e-06/0.4447, allocations: 1.344 kB / 387.9 MB, free: 11.48 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001165/0.4459, allocations: 413.5 kB / 388.3 MB, free: 11.3 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007132/0.4466, allocations: 108.1 kB / 388.4 MB, free: 11.24 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002737/0.4493, allocations: 1.5 MB / 389.9 MB, free: 10.22 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004419/0.4498, allocations: 0.8804 MB / 390.8 MB, free: 9.434 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0005179/0.4503, allocations: 85.88 kB / 390.9 MB, free: 9.395 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002562/0.4506, allocations: 52.7 kB / 390.9 MB, free: 9.379 MB / 302.1 MB Notification: Performance of SimCode: time 1.162e-06/0.4506, allocations: 0 / 390.9 MB, free: 9.379 MB / 302.1 MB Notification: Performance of Templates: time 0.01472/0.4653, allocations: 8.003 MB / 398.9 MB, free: 4.496 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.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