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/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) 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/Complex trunk/package.mo): time 0.002173/0.002173, allocations: 207.3 kB / 17.99 MB, free: 3.777 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.408/1.408, allocations: 226.7 MB / 245.5 MB, free: 6.973 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001104/0.001104, allocations: 106.2 kB / 296.7 MB, free: 6.465 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001199/0.001199, allocations: 55.91 kB / 356.6 MB, free: 10.59 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3289/0.3302, allocations: 50.45 MB / 407.1 MB, free: 27.8 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.NandGate): time 0.006828/0.3371, allocations: 4.269 MB / 411.3 MB, free: 23.53 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.003667/0.3408, allocations: 1.204 MB / 412.5 MB, free: 22.32 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009778/0.3419, allocations: 12 kB / 412.5 MB, free: 22.31 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0006057/0.3425, allocations: 79.33 kB / 412.6 MB, free: 22.23 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001179/0.3437, allocations: 150.8 kB / 412.8 MB, free: 22.08 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001276/0.345, allocations: 299.6 kB / 413.1 MB, free: 21.79 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.00179/0.3468, allocations: 1.015 MB / 414.1 MB, free: 20.77 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006607/0.3475, allocations: 239.5 kB / 414.3 MB, free: 20.53 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007726/0.3483, allocations: 342.8 kB / 414.6 MB, free: 20.2 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008872/0.3492, allocations: 426.2 kB / 415.1 MB, free: 19.78 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003867/0.3496, allocations: 60 kB / 415.1 MB, free: 19.72 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003467/0.35, allocations: 59.94 kB / 415.2 MB, free: 19.66 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002702/0.3503, allocations: 163.4 kB / 415.3 MB, free: 19.5 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0006976/0.351, allocations: 394 kB / 415.7 MB, free: 19.11 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001296/0.3523, allocations: 1.154 MB / 416.9 MB, free: 17.96 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 9.297e-06/0.3523, allocations: 0 / 416.9 MB, free: 17.96 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.415e-06/0.3524, allocations: 0 / 416.9 MB, free: 17.96 MB / 298.7 MB Notification: Performance of Transformations before backend: time 6.17e-05/0.3524, allocations: 0 / 416.9 MB, free: 17.96 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.00473/0.3572, allocations: 1.255 MB / 418.1 MB, free: 16.64 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 9.197e-05/0.3573, allocations: 12.03 kB / 418.1 MB, free: 16.62 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005205/0.3578, allocations: 87.89 kB / 418.2 MB, free: 16.54 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001177/0.359, allocations: 473.6 kB / 418.7 MB, free: 16.04 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.921e-05/0.3591, allocations: 41.69 kB / 418.7 MB, free: 16 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002115/0.3594, allocations: 60.38 kB / 418.8 MB, free: 15.94 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003177/0.3626, allocations: 0.9723 MB / 419.8 MB, free: 14.9 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.906e-05/0.3626, allocations: 0 / 419.8 MB, free: 14.9 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000112/0.3627, allocations: 24 kB / 419.8 MB, free: 14.88 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.189e-05/0.3628, allocations: 19.98 kB / 419.8 MB, free: 14.86 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003885/0.3667, allocations: 1.003 MB / 420.8 MB, free: 13.86 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006694/0.3734, allocations: 3.196 MB / 424 MB, free: 10.52 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003164/0.3766, allocations: 0.912 MB / 424.9 MB, free: 9.566 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001462/0.3781, allocations: 441.8 kB / 425.3 MB, free: 9.129 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.665e-05/0.3782, allocations: 20.48 kB / 425.4 MB, free: 9.109 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001541/0.3798, allocations: 457.1 kB / 425.8 MB, free: 8.652 MB / 298.7 MB Notification: Performance of pre-optimization done (n=50): time 4.478e-06/0.3798, allocations: 0 / 425.8 MB, free: 8.652 MB / 298.7 MB Notification: Performance of matching and sorting (n=50): time 0.004195/0.384, allocations: 1.099 MB / 426.9 MB, free: 7.543 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000173/0.3842, allocations: 376.3 kB / 427.3 MB, free: 7.09 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00118/0.3854, allocations: 0.5732 MB / 427.8 MB, free: 6.508 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 8.26e-05/0.3855, allocations: 41.7 kB / 427.9 MB, free: 6.461 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002822/0.3858, allocations: 371.6 kB / 428.2 MB, free: 6.09 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001691/0.386, allocations: 165.6 kB / 428.4 MB, free: 5.926 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003396/0.3864, allocations: 142.5 kB / 428.6 MB, free: 5.781 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001063/0.3865, allocations: 370.8 kB / 428.9 MB, free: 5.41 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001596/0.3881, allocations: 401.7 kB / 429.3 MB, free: 5.02 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001778/0.3899, allocations: 0.6811 MB / 430 MB, free: 4.215 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002723/0.3926, allocations: 0.9817 MB / 431 MB, free: 3.137 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.844e-06/0.3926, allocations: 7.938 kB / 431 MB, free: 3.129 MB / 298.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.002629/0.3953, allocations: 1.13 MB / 432.1 MB, free: 1.98 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.399e-05/0.3953, allocations: 67.39 kB / 432.2 MB, free: 1.902 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.348e-05/0.3953, allocations: 4 kB / 432.2 MB, free: 1.898 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.43e-05/0.3954, allocations: 15.94 kB / 432.2 MB, free: 1.883 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009313/0.3963, allocations: 224 kB / 432.4 MB, free: 1.664 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.893e-05/0.3963, allocations: 11.94 kB / 432.4 MB, free: 1.652 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001046/0.3974, allocations: 187 kB / 432.6 MB, free: 1.469 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.029e-05/0.3975, allocations: 32 kB / 432.6 MB, free: 1.438 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.000274/0.3978, allocations: 223.6 kB / 432.9 MB, free: 1.211 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001138/0.3979, allocations: 71.23 kB / 432.9 MB, free: 1.141 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000145/0.398, allocations: 70.41 kB / 433 MB, free: 1.074 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.101e-06/0.398, allocations: 11.98 kB / 433 MB, free: 1.062 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.452e-06/0.3981, allocations: 0 / 433 MB, free: 1.062 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.31e-06/0.3981, allocations: 0 / 433 MB, free: 1.062 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003216/0.4013, allocations: 1.677 MB / 434.7 MB, free: 15.33 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.298e-06/0.4013, allocations: 3.938 kB / 434.7 MB, free: 15.32 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007834/0.4021, allocations: 147.8 kB / 434.8 MB, free: 15.18 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.155e-05/0.4021, allocations: 4 kB / 434.8 MB, free: 15.18 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.346e-05/0.4022, allocations: 15.98 kB / 434.8 MB, free: 15.16 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.012e-06/0.4022, allocations: 0 / 434.8 MB, free: 15.16 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.874e-06/0.4022, allocations: 0 / 434.8 MB, free: 15.16 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01664/0.4189, allocations: 6.307 MB / 441.2 MB, free: 8.699 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000186/0.4191, allocations: 148.1 kB / 441.3 MB, free: 8.535 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001779/0.4193, allocations: 15.94 kB / 441.3 MB, free: 8.52 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008358/0.4201, allocations: 107.9 kB / 441.4 MB, free: 8.414 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001749/0.4204, allocations: 44.38 kB / 441.5 MB, free: 8.371 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.053e-05/0.4204, allocations: 20 kB / 441.5 MB, free: 8.352 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0006267/0.4211, allocations: 406.8 kB / 441.9 MB, free: 7.957 MB / 314.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4211, allocations: 0 / 441.9 MB, free: 7.957 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0009129/0.422, allocations: 243.8 kB / 442.1 MB, free: 7.719 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.0002264/0.4222, allocations: 117.8 kB / 442.2 MB, free: 7.598 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.002651/0.4249, allocations: 1.005 MB / 443.2 MB, free: 6.562 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.807e-06/0.4249, allocations: 0 / 443.2 MB, free: 6.562 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001098/0.426, allocations: 406.7 kB / 443.6 MB, free: 6.164 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006596/0.4267, allocations: 104.9 kB / 443.7 MB, free: 6.062 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003105/0.4298, allocations: 1.813 MB / 445.6 MB, free: 4.215 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005321/0.4304, allocations: 0.8941 MB / 446.4 MB, free: 3.293 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0006334/0.431, allocations: 100.8 kB / 446.5 MB, free: 3.195 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003136/0.4313, allocations: 59.42 kB / 446.6 MB, free: 3.137 MB / 314.7 MB Notification: Performance of SimCode: time 1.112e-06/0.4313, allocations: 0 / 446.6 MB, free: 3.137 MB / 314.7 MB Notification: Performance of Templates: time 0.01964/0.451, allocations: 10.64 MB / 457.2 MB, free: 8.562 MB / 330.7 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@2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/NandGate/NandGate.csv","../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.NandGate.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches