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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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) 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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009035/0.0009036, allocations: 95.22 kB / 17.31 MB, free: 6.359 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001091/0.001091, allocations: 177 kB / 18.21 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.3/1.3, allocations: 223.3 MB / 242.3 MB, free: 196 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002303/0.0002303, allocations: 15.94 kB / 302.1 MB, free: 6.125 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07129/0.07154, allocations: 50.41 MB / 352.5 MB, free: 3.699 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.NandGate): time 0.00361/0.07516, allocations: 3.834 MB / 356.3 MB, free: 15.84 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001799/0.07698, allocations: 1.168 MB / 357.5 MB, free: 14.66 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002816/0.07727, allocations: 8 kB / 357.5 MB, free: 14.66 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001946/0.07747, allocations: 83.33 kB / 357.6 MB, free: 14.57 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003629/0.07784, allocations: 146.8 kB / 357.7 MB, free: 14.43 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005536/0.0784, allocations: 291.7 kB / 358 MB, free: 14.14 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008698/0.07929, allocations: 1.015 MB / 359 MB, free: 13.12 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003419/0.07964, allocations: 243.3 kB / 359.3 MB, free: 12.88 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003621/0.08001, allocations: 326.8 kB / 359.6 MB, free: 12.56 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004173/0.08043, allocations: 398.2 kB / 360 MB, free: 12.17 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 9.928e-05/0.08054, allocations: 48 kB / 360 MB, free: 12.12 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001022/0.08065, allocations: 52 kB / 360.1 MB, free: 12.07 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001288/0.08078, allocations: 155.3 kB / 360.2 MB, free: 11.92 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003346/0.08112, allocations: 399.7 kB / 360.6 MB, free: 11.52 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006752/0.08181, allocations: 0.9273 MB / 361.5 MB, free: 10.59 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.036e-06/0.08182, allocations: 8 kB / 361.5 MB, free: 10.59 MB / 302.1 MB Notification: Performance of FrontEnd: time 7.71e-07/0.08183, allocations: 4 kB / 361.5 MB, free: 10.58 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.623e-05/0.08185, allocations: 0 / 361.5 MB, free: 10.58 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.002657/0.08451, allocations: 1.193 MB / 362.7 MB, free: 9.324 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.196e-05/0.08455, allocations: 12.03 kB / 362.8 MB, free: 9.312 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001478/0.0847, allocations: 80 kB / 362.8 MB, free: 9.234 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005249/0.08524, allocations: 481.5 kB / 363.3 MB, free: 8.723 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.532e-05/0.08529, allocations: 41.69 kB / 363.3 MB, free: 8.684 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001056/0.0854, allocations: 60.38 kB / 363.4 MB, free: 8.625 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002263/0.08767, allocations: 1.05 MB / 364.5 MB, free: 7.508 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.638e-05/0.0877, allocations: 3.938 kB / 364.5 MB, free: 7.504 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.42e-05/0.08778, allocations: 28 kB / 364.5 MB, free: 7.477 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.433e-05/0.0878, allocations: 16 kB / 364.5 MB, free: 7.461 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003139/0.09095, allocations: 1.155 MB / 365.7 MB, free: 6.309 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004506/0.09546, allocations: 3.274 MB / 368.9 MB, free: 2.902 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002452/0.09793, allocations: 1.036 MB / 370 MB, free: 1.824 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001265/0.09921, allocations: 0.4939 MB / 370.5 MB, free: 1.324 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.206e-05/0.09926, allocations: 8.438 kB / 370.5 MB, free: 1.316 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001278/0.1005, allocations: 0.52 MB / 371 MB, free: 0.7852 MB / 302.1 MB Notification: Performance of pre-optimization done (n=50): time 2.114e-06/0.1006, allocations: 0 / 371 MB, free: 0.7852 MB / 302.1 MB Notification: Performance of matching and sorting (n=50): time 0.14/0.2406, allocations: 1.264 MB / 372.3 MB, free: 24.79 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.401e-05/0.2407, allocations: 378 kB / 372.6 MB, free: 24.35 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008818/0.2416, allocations: 0.5809 MB / 373.2 MB, free: 24.23 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 8.711e-05/0.2417, allocations: 37.39 kB / 373.2 MB, free: 24.2 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002088/0.2419, allocations: 368.7 kB / 373.6 MB, free: 24.06 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001383/0.2421, allocations: 165.7 kB / 373.8 MB, free: 23.96 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001012/0.2422, allocations: 64.88 kB / 373.8 MB, free: 23.94 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 8.609e-05/0.2423, allocations: 372.9 kB / 374.2 MB, free: 23.63 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001352/0.2436, allocations: 461.4 kB / 374.6 MB, free: 23.63 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001477/0.2451, allocations: 0.7329 MB / 375.4 MB, free: 23.3 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002408/0.2475, allocations: 1.089 MB / 376.5 MB, free: 22.97 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.013e-06/0.2476, allocations: 4 kB / 376.5 MB, free: 22.97 MB / 302.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.003019/0.2506, allocations: 1.257 MB / 377.7 MB, free: 22.52 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.955e-05/0.2506, allocations: 66.84 kB / 377.8 MB, free: 22.45 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.294e-05/0.2506, allocations: 5.562 kB / 377.8 MB, free: 22.45 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.61e-05/0.2507, allocations: 10.06 kB / 377.8 MB, free: 22.45 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001082/0.2518, allocations: 256.6 kB / 378.1 MB, free: 22.43 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.907e-05/0.2518, allocations: 15.66 kB / 378.1 MB, free: 22.42 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001116/0.2529, allocations: 224.6 kB / 378.3 MB, free: 22.36 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.669e-05/0.253, allocations: 30.19 kB / 378.3 MB, free: 22.36 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.0002529/0.2533, allocations: 230.6 kB / 378.5 MB, free: 22.17 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.717e-05/0.2534, allocations: 72.03 kB / 378.6 MB, free: 22.13 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001437/0.2535, allocations: 72.48 kB / 378.7 MB, free: 22.08 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.451e-06/0.2535, allocations: 5.219 kB / 378.7 MB, free: 22.08 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.518e-06/0.2535, allocations: 4.906 kB / 378.7 MB, free: 22.08 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.302e-06/0.2535, allocations: 0 / 378.7 MB, free: 22.08 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003357/0.2569, allocations: 1.802 MB / 380.5 MB, free: 21.27 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.935e-06/0.2569, allocations: 0 / 380.5 MB, free: 21.27 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008209/0.2578, allocations: 175.5 kB / 380.7 MB, free: 21.26 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.849e-06/0.2578, allocations: 2.906 kB / 380.7 MB, free: 21.26 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.249e-05/0.2578, allocations: 17.11 kB / 380.7 MB, free: 21.25 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.918e-06/0.2578, allocations: 2.828 kB / 380.7 MB, free: 21.25 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.423e-06/0.2578, allocations: 0 / 380.7 MB, free: 21.25 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003537/0.2614, allocations: 1.469 MB / 382.2 MB, free: 20.71 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001091/0.2615, allocations: 142.4 kB / 382.3 MB, free: 20.57 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.778e-05/0.2616, allocations: 14.23 kB / 382.3 MB, free: 20.57 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008685/0.2625, allocations: 143.2 kB / 382.4 MB, free: 20.55 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001236/0.2626, allocations: 53.72 kB / 382.5 MB, free: 20.54 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.17e-05/0.2627, allocations: 16.83 kB / 382.5 MB, free: 20.53 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0005505/0.2632, allocations: 401.2 kB / 382.9 MB, free: 20.35 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.2632, allocations: 4 kB / 382.9 MB, free: 20.35 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005846/0.2638, allocations: 182.4 kB / 383.1 MB, free: 20.31 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.0001176/0.2639, allocations: 119.4 kB / 383.2 MB, free: 20.21 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.002669/0.2666, allocations: 1.113 MB / 384.3 MB, free: 19.82 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.208e-06/0.2666, allocations: 1 kB / 384.3 MB, free: 19.82 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001188/0.2678, allocations: 471.8 kB / 384.8 MB, free: 19.69 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006157/0.2685, allocations: 101.3 kB / 384.9 MB, free: 19.64 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002344/0.2708, allocations: 1.611 MB / 386.5 MB, free: 18.68 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002911/0.2711, allocations: 0.8854 MB / 387.4 MB, free: 17.97 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003062/0.2714, allocations: 58.52 kB / 387.4 MB, free: 17.96 MB / 302.1 MB Notification: Performance of SimCode: time 3.21e-07/0.2714, allocations: 0 / 387.4 MB, free: 17.96 MB / 302.1 MB Notification: Performance of Templates: time 0.01147/0.2829, allocations: 9.215 MB / 396.6 MB, free: 12.28 MB / 302.1 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/NandGate/NandGate.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.NandGate.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches