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.001116/0.001116, allocations: 96.36 kB / 17 MB, free: 6.418 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001382/0.001382, allocations: 194.6 kB / 17.9 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.616/1.616, allocations: 227.7 MB / 246.4 MB, free: 11.51 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002192/0.0002192, allocations: 8 kB / 307.1 MB, free: 1.145 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1098/0.11, allocations: 51.53 MB / 358.6 MB, free: 13.61 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.NandGate): time 0.004171/0.1142, allocations: 3.656 MB / 362.3 MB, free: 9.941 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.00201/0.1163, allocations: 1.172 MB / 363.5 MB, free: 8.762 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002479/0.1165, allocations: 8 kB / 363.5 MB, free: 8.754 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001983/0.1167, allocations: 79.33 kB / 363.5 MB, free: 8.676 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003127/0.1171, allocations: 146.7 kB / 363.7 MB, free: 8.531 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005285/0.1176, allocations: 195.8 kB / 363.9 MB, free: 8.34 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009183/0.1185, allocations: 0.9449 MB / 364.8 MB, free: 7.391 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003708/0.1189, allocations: 211.9 kB / 365 MB, free: 7.176 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003359/0.1193, allocations: 322.9 kB / 365.3 MB, free: 6.859 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004272/0.1197, allocations: 382.4 kB / 365.7 MB, free: 6.484 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 8.959e-05/0.1198, allocations: 52 kB / 365.8 MB, free: 6.434 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.963e-05/0.1199, allocations: 52 kB / 365.8 MB, free: 6.383 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001519/0.1201, allocations: 151.4 kB / 366 MB, free: 6.234 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000153/0.1202, allocations: 161.3 kB / 366.1 MB, free: 6.07 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007672/0.121, allocations: 0.9234 MB / 367 MB, free: 5.145 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.113e-06/0.121, allocations: 0 / 367 MB, free: 5.145 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.102e-06/0.121, allocations: 7.938 kB / 367.1 MB, free: 5.137 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.225e-05/0.121, allocations: 0 / 367.1 MB, free: 5.137 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.00252/0.1236, allocations: 1.208 MB / 368.3 MB, free: 3.863 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.145e-05/0.1236, allocations: 16.02 kB / 368.3 MB, free: 3.848 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001559/0.1238, allocations: 83.06 kB / 368.4 MB, free: 3.766 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000565/0.1243, allocations: 460.6 kB / 368.8 MB, free: 3.273 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.008e-05/0.1244, allocations: 41.31 kB / 368.8 MB, free: 3.23 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001031/0.1245, allocations: 60 kB / 368.9 MB, free: 3.172 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002132/0.1267, allocations: 1.038 MB / 369.9 MB, free: 2.07 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.699e-05/0.1267, allocations: 7.938 kB / 370 MB, free: 2.062 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.38e-05/0.1268, allocations: 24 kB / 370 MB, free: 2.039 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.886e-05/0.1268, allocations: 16 kB / 370 MB, free: 2.023 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002761/0.1296, allocations: 1.159 MB / 371.2 MB, free: 0.8672 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2353/0.3649, allocations: 3.275 MB / 374.4 MB, free: 17.47 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002624/0.3675, allocations: 1.03 MB / 375.5 MB, free: 17.23 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001299/0.3689, allocations: 499.8 kB / 375.9 MB, free: 17.21 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.03e-05/0.3689, allocations: 18.48 kB / 376 MB, free: 17.21 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001322/0.3703, allocations: 0.5107 MB / 376.5 MB, free: 17.15 MB / 302.1 MB Notification: Performance of pre-optimization done (n=50): time 2.695e-06/0.3703, allocations: 0 / 376.5 MB, free: 17.15 MB / 302.1 MB Notification: Performance of matching and sorting (n=50): time 0.003507/0.3738, allocations: 1.266 MB / 377.7 MB, free: 16.86 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000148/0.374, allocations: 383.6 kB / 378.1 MB, free: 16.42 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000981/0.3749, allocations: 0.5653 MB / 378.7 MB, free: 16.16 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 6.413e-05/0.375, allocations: 43.64 kB / 378.7 MB, free: 16.12 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002957/0.3753, allocations: 373.7 kB / 379.1 MB, free: 15.83 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001616/0.3755, allocations: 166.5 kB / 379.3 MB, free: 15.7 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.49e-05/0.3755, allocations: 14.91 kB / 379.3 MB, free: 15.69 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001507/0.3757, allocations: 369.5 kB / 379.6 MB, free: 15.36 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001257/0.377, allocations: 465.8 kB / 380.1 MB, free: 15.23 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001367/0.3783, allocations: 0.7359 MB / 380.8 MB, free: 14.75 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001274/0.3796, allocations: 0.5329 MB / 381.4 MB, free: 14.54 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.741e-06/0.3796, allocations: 1.812 kB / 381.4 MB, free: 14.54 MB / 302.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.003019/0.3827, allocations: 1.241 MB / 382.6 MB, free: 14.08 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.498e-05/0.3827, allocations: 66.92 kB / 382.7 MB, free: 14.02 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.057e-05/0.3828, allocations: 10.47 kB / 382.7 MB, free: 14.01 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.458e-05/0.3828, allocations: 11.22 kB / 382.7 MB, free: 14.01 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001098/0.3839, allocations: 248 kB / 382.9 MB, free: 13.99 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.638e-05/0.384, allocations: 15.08 kB / 382.9 MB, free: 13.99 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001114/0.3851, allocations: 234.5 kB / 383.2 MB, free: 13.92 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.693e-05/0.3852, allocations: 34.11 kB / 383.2 MB, free: 13.91 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 ($whenCondition2,$whenCondition1,$PRE.VIN1.signalSource.T_start,VIN1.signalSource.T_start,$PRE.VIN1.signalSource.count,VIN1.signalSource.count,$PRE.VIN2.signalSource.T_start,VIN2.signalSource.T_start,$PRE.VIN2.signalSource.count,VIN2.signalSource.count) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003572/0.3855, allocations: 218.4 kB / 383.4 MB, free: 13.73 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001134/0.3857, allocations: 64.92 kB / 383.5 MB, free: 13.7 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001932/0.3859, allocations: 75.27 kB / 383.5 MB, free: 13.65 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.179e-05/0.3859, allocations: 5.438 kB / 383.6 MB, free: 13.65 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.524e-05/0.3859, allocations: 0 / 383.6 MB, free: 13.65 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.309e-05/0.3859, allocations: 7.703 kB / 383.6 MB, free: 13.64 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003922/0.3898, allocations: 1.797 MB / 385.4 MB, free: 12.84 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.747e-06/0.3899, allocations: 0 / 385.4 MB, free: 12.84 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008255/0.3907, allocations: 181.2 kB / 385.5 MB, free: 12.82 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.026e-05/0.3907, allocations: 5.828 kB / 385.5 MB, free: 12.82 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.168e-05/0.3908, allocations: 18.62 kB / 385.6 MB, free: 12.81 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.288e-06/0.3908, allocations: 1.531 kB / 385.6 MB, free: 12.81 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.274e-06/0.3908, allocations: 0 / 385.6 MB, free: 12.81 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003458/0.3943, allocations: 1.472 MB / 387 MB, free: 12.27 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001413/0.3944, allocations: 145.2 kB / 387.2 MB, free: 12.13 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001034/0.3945, allocations: 17.27 kB / 387.2 MB, free: 12.12 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007572/0.3953, allocations: 149.4 kB / 387.3 MB, free: 12.1 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000143/0.3954, allocations: 47.08 kB / 387.4 MB, free: 12.09 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.461e-05/0.3955, allocations: 20.42 kB / 387.4 MB, free: 12.09 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0006245/0.3961, allocations: 397 kB / 387.8 MB, free: 11.91 MB / 302.1 MB Notification: Performance of sort global known variables: time 2e-07/0.3961, allocations: 0 / 387.8 MB, free: 11.91 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0007179/0.3969, allocations: 181.7 kB / 388 MB, free: 11.87 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001805/0.397, allocations: 119.7 kB / 388.1 MB, free: 11.77 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.00256/0.3996, allocations: 1.111 MB / 389.2 MB, free: 11.37 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.447e-06/0.3996, allocations: 2.5 kB / 389.2 MB, free: 11.37 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001079/0.4007, allocations: 467.5 kB / 389.7 MB, free: 11.23 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006071/0.4013, allocations: 105.3 kB / 389.8 MB, free: 11.18 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003255/0.4046, allocations: 1.503 MB / 391.3 MB, free: 10.17 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003367/0.4049, allocations: 0.8849 MB / 392.1 MB, free: 9.383 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.000488/0.4054, allocations: 83.05 kB / 392.2 MB, free: 9.34 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002155/0.4057, allocations: 51.61 kB / 392.3 MB, free: 9.324 MB / 302.1 MB Notification: Performance of SimCode: time 1.333e-06/0.4057, allocations: 4 kB / 392.3 MB, free: 9.32 MB / 302.1 MB Notification: Performance of Templates: time 0.01228/0.418, allocations: 7.654 MB / 399.9 MB, free: 3.734 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