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/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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) 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) 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/Complex 4.0.0+maint.om/package.mo): time 0.00117/0.00117, allocations: 188.9 kB / 17.27 MB, free: 4.504 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.406/1.406, allocations: 222.9 MB / 240.9 MB, free: 10.98 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001093/0.001093, allocations: 98.77 kB / 291.2 MB, free: 10.96 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0009007/0.0009008, allocations: 43.94 kB / 350 MB, free: 92 kB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3538/0.3547, allocations: 49.44 MB / 399.5 MB, free: 33.39 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.NandGate): time 0.004794/0.3596, allocations: 4.24 MB / 403.7 MB, free: 29.13 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.002432/0.362, allocations: 1.176 MB / 404.9 MB, free: 27.95 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004413/0.3625, allocations: 11.94 kB / 404.9 MB, free: 27.94 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002619/0.3629, allocations: 75.33 kB / 405 MB, free: 27.86 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003919/0.3633, allocations: 154.7 kB / 405.1 MB, free: 27.71 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007766/0.3641, allocations: 287.7 kB / 405.4 MB, free: 27.43 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0008529/0.3649, allocations: 1.023 MB / 406.4 MB, free: 26.4 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003629/0.3653, allocations: 247.3 kB / 406.7 MB, free: 26.16 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003446/0.3657, allocations: 342.8 kB / 407 MB, free: 25.82 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003791/0.366, allocations: 418.2 kB / 407.4 MB, free: 25.41 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 9.659e-05/0.3661, allocations: 60 kB / 407.5 MB, free: 25.35 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001061/0.3663, allocations: 56 kB / 407.5 MB, free: 25.3 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.00014/0.3664, allocations: 171.3 kB / 407.7 MB, free: 25.13 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003037/0.3667, allocations: 386 kB / 408.1 MB, free: 24.75 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007703/0.3675, allocations: 1.158 MB / 409.2 MB, free: 23.59 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.521e-06/0.3675, allocations: 4 kB / 409.2 MB, free: 23.59 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.004e-06/0.3675, allocations: 0 / 409.2 MB, free: 23.59 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.067e-05/0.3675, allocations: 3.938 kB / 409.2 MB, free: 23.58 MB / 298.7 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.002779/0.3703, allocations: 1.251 MB / 410.5 MB, free: 22.27 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.557e-05/0.3704, allocations: 12.02 kB / 410.5 MB, free: 22.25 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001616/0.3706, allocations: 87.84 kB / 410.6 MB, free: 22.17 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005631/0.3711, allocations: 473.6 kB / 411 MB, free: 21.66 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.081e-05/0.3712, allocations: 49.69 kB / 411.1 MB, free: 21.62 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.433e-05/0.3713, allocations: 56.38 kB / 411.1 MB, free: 21.56 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001937/0.3732, allocations: 0.9645 MB / 412.1 MB, free: 20.53 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.929e-05/0.3733, allocations: 4 kB / 412.1 MB, free: 20.53 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.735e-05/0.3733, allocations: 28 kB / 412.1 MB, free: 20.5 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.639e-05/0.3734, allocations: 16 kB / 412.2 MB, free: 20.48 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002539/0.3759, allocations: 1.003 MB / 413.2 MB, free: 19.48 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004118/0.38, allocations: 3.196 MB / 416.4 MB, free: 16.16 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002121/0.3822, allocations: 0.9123 MB / 417.3 MB, free: 15.2 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001035/0.3832, allocations: 441.8 kB / 417.7 MB, free: 14.76 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.579e-05/0.3833, allocations: 16.48 kB / 417.7 MB, free: 14.75 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001214/0.3845, allocations: 465 kB / 418.2 MB, free: 14.28 MB / 298.7 MB Notification: Performance of pre-optimization done (n=50): time 3.126e-06/0.3845, allocations: 4 kB / 418.2 MB, free: 14.27 MB / 298.7 MB Notification: Performance of matching and sorting (n=50): time 0.00291/0.3875, allocations: 1.092 MB / 419.3 MB, free: 13.18 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001361/0.3876, allocations: 376.3 kB / 419.6 MB, free: 12.73 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007333/0.3884, allocations: 0.5809 MB / 420.2 MB, free: 12.14 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 8.807e-05/0.3884, allocations: 37.7 kB / 420.3 MB, free: 12.09 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002252/0.3887, allocations: 367.6 kB / 420.6 MB, free: 11.73 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001293/0.3888, allocations: 169.6 kB / 420.8 MB, free: 11.56 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002176/0.389, allocations: 146.4 kB / 420.9 MB, free: 11.41 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.000103/0.3892, allocations: 370.8 kB / 421.3 MB, free: 11.04 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001064/0.3902, allocations: 405.7 kB / 421.7 MB, free: 10.64 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001212/0.3914, allocations: 0.6772 MB / 422.4 MB, free: 9.84 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002022/0.3935, allocations: 0.9701 MB / 423.3 MB, free: 8.777 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.835e-06/0.3935, allocations: 7.938 kB / 423.3 MB, free: 8.77 MB / 298.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.002583/0.3961, allocations: 1.13 MB / 424.5 MB, free: 7.617 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.946e-05/0.3962, allocations: 67.39 kB / 424.5 MB, free: 7.539 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.359e-05/0.3962, allocations: 8.281 kB / 424.5 MB, free: 7.531 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.713e-05/0.3962, allocations: 15.94 kB / 424.6 MB, free: 7.516 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009326/0.3972, allocations: 223.6 kB / 424.8 MB, free: 7.297 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.576e-05/0.3972, allocations: 11.94 kB / 424.8 MB, free: 7.285 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009856/0.3982, allocations: 187 kB / 425 MB, free: 7.102 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.006e-05/0.3983, allocations: 28 kB / 425 MB, free: 7.074 MB / 298.7 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.000329/0.3986, allocations: 229.6 kB / 425.2 MB, free: 6.84 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.107e-05/0.3987, allocations: 63.25 kB / 425.3 MB, free: 6.777 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001555/0.3989, allocations: 74.41 kB / 425.4 MB, free: 6.707 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.752e-06/0.3989, allocations: 7.938 kB / 425.4 MB, free: 6.699 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.268e-05/0.3989, allocations: 0 / 425.4 MB, free: 6.699 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.582e-06/0.3989, allocations: 0 / 425.4 MB, free: 6.699 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002983/0.4019, allocations: 1.681 MB / 427 MB, free: 4.961 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.897e-06/0.4019, allocations: 0 / 427 MB, free: 4.961 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000714/0.4026, allocations: 147.7 kB / 427.2 MB, free: 4.816 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.652e-06/0.4027, allocations: 4 kB / 427.2 MB, free: 4.812 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.388e-05/0.4027, allocations: 11.98 kB / 427.2 MB, free: 4.801 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.815e-06/0.4027, allocations: 4 kB / 427.2 MB, free: 4.797 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.396e-06/0.4027, allocations: 0 / 427.2 MB, free: 4.797 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01516/0.4179, allocations: 6.305 MB / 433.5 MB, free: 14.34 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001692/0.4181, allocations: 148.2 kB / 433.7 MB, free: 14.17 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001177/0.4183, allocations: 15.94 kB / 433.7 MB, free: 14.16 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007485/0.419, allocations: 107.9 kB / 433.8 MB, free: 14.05 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001655/0.4192, allocations: 52.31 kB / 433.8 MB, free: 14 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.492e-05/0.4192, allocations: 19.98 kB / 433.8 MB, free: 13.98 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.000629/0.4199, allocations: 398.8 kB / 434.2 MB, free: 13.59 MB / 314.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.4199, allocations: 0 / 434.2 MB, free: 13.59 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0009731/0.4209, allocations: 243.7 kB / 434.5 MB, free: 13.35 MB / 314.7 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.0002594/0.4211, allocations: 123.1 kB / 434.6 MB, free: 13.22 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.002646/0.4238, allocations: 0.9926 MB / 435.6 MB, free: 12.21 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 5.59e-06/0.4238, allocations: 7.938 kB / 435.6 MB, free: 12.2 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001095/0.4249, allocations: 407.3 kB / 436 MB, free: 11.8 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006655/0.4256, allocations: 102.3 kB / 436.1 MB, free: 11.7 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003077/0.4287, allocations: 1.814 MB / 437.9 MB, free: 9.848 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004733/0.4292, allocations: 0.8982 MB / 438.8 MB, free: 8.922 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0005492/0.4297, allocations: 92.83 kB / 438.9 MB, free: 8.832 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002696/0.43, allocations: 63.42 kB / 439 MB, free: 8.77 MB / 314.7 MB Notification: Performance of SimCode: time 1.854e-06/0.43, allocations: 0 / 439 MB, free: 8.77 MB / 314.7 MB Notification: Performance of Templates: time 0.01835/0.4484, allocations: 10.65 MB / 449.6 MB, free: 14.2 MB / 330.7 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@2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/NandGate/NandGate.csv","../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.NandGate.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches