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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009429/0.0009429, allocations: 79.91 kB / 21.18 MB, free: 3.391 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001034/0.001034, allocations: 145.1 kB / 24.54 MB, free: 32 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.9712/0.9712, allocations: 173.4 MB / 201.2 MB, free: 9.344 MB / 186.7 MB " [Timeout remaining time 179] 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=5059,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=5059,variableFilter="time|Nand.C4.v|Nand.C7.v",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.NandGate") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.904e-06/1.904e-06, allocations: 0 / 268 MB, free: 6.445 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.744e-05/2.935e-05, allocations: 2.312 kB / 268 MB, free: 6.441 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.NandGate): time 0.004076/0.004106, allocations: 4.159 MB / 272.2 MB, free: 2.262 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001903/0.006009, allocations: 1.164 MB / 273.3 MB, free: 1.09 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003242/0.006333, allocations: 11.94 kB / 273.3 MB, free: 1.078 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002047/0.006538, allocations: 106.8 kB / 273.4 MB, free: 0.9727 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003292/0.006867, allocations: 202.1 kB / 273.6 MB, free: 0.7734 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006441/0.007511, allocations: 331.5 kB / 274 MB, free: 460 kB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0009087/0.00842, allocations: 1.124 MB / 275.1 MB, free: 15.32 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000264/0.008684, allocations: 195 kB / 275.3 MB, free: 15.13 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006202/0.009304, allocations: 0.6044 MB / 275.9 MB, free: 14.52 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004533/0.009757, allocations: 359.1 kB / 276.2 MB, free: 14.17 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001573/0.009915, allocations: 120 kB / 276.3 MB, free: 14.05 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001382/0.01005, allocations: 116 kB / 276.5 MB, free: 13.94 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001537/0.01021, allocations: 235.3 kB / 276.7 MB, free: 13.71 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002916/0.0105, allocations: 319.4 kB / 277 MB, free: 13.4 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007306/0.01123, allocations: 0.7205 MB / 277.7 MB, free: 12.68 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.908e-06/0.01123, allocations: 0 / 277.7 MB, free: 12.68 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.002e-06/0.01123, allocations: 0 / 277.7 MB, free: 12.68 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.203e-05/0.01125, allocations: 4 kB / 277.7 MB, free: 12.67 MB / 266.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.001849/0.01309, allocations: 1.209 MB / 278.9 MB, free: 11.41 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.935e-05/0.01313, allocations: 12.92 kB / 278.9 MB, free: 11.39 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001992/0.01333, allocations: 132.4 kB / 279.1 MB, free: 11.27 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005182/0.01385, allocations: 430.2 kB / 279.5 MB, free: 10.82 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.453e-05/0.0139, allocations: 49.67 kB / 279.5 MB, free: 10.77 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.505e-05/0.01399, allocations: 68.36 kB / 279.6 MB, free: 10.7 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001264/0.01526, allocations: 1.039 MB / 280.7 MB, free: 9.508 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.501e-05/0.01527, allocations: 192 / 280.7 MB, free: 9.508 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.25e-05/0.01533, allocations: 32.36 kB / 280.7 MB, free: 9.477 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.963e-05/0.01535, allocations: 19.94 kB / 280.7 MB, free: 9.457 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007259/0.01608, allocations: 353.6 kB / 281 MB, free: 9.109 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003159/0.01924, allocations: 3.054 MB / 284.1 MB, free: 5.926 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008136/0.02005, allocations: 391.6 kB / 284.5 MB, free: 5.531 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003884/0.02044, allocations: 201.1 kB / 284.7 MB, free: 5.332 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.412e-05/0.02048, allocations: 16.48 kB / 284.7 MB, free: 5.316 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004221/0.02091, allocations: 251.8 kB / 284.9 MB, free: 5.055 MB / 266.7 MB Notification: Performance of pre-optimization done (n=50): time 2.395e-06/0.02091, allocations: 0 / 284.9 MB, free: 5.055 MB / 266.7 MB Notification: Performance of matching and sorting (n=50): time 0.001008/0.02192, allocations: 0.5083 MB / 285.5 MB, free: 4.539 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001395/0.02206, allocations: 376.3 kB / 285.8 MB, free: 4.086 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004692/0.02252, allocations: 0.5141 MB / 286.3 MB, free: 3.555 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 4.987e-05/0.02257, allocations: 41.7 kB / 286.4 MB, free: 3.508 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002375/0.02281, allocations: 423.1 kB / 286.8 MB, free: 3.086 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001277/0.02294, allocations: 178.5 kB / 287 MB, free: 2.91 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002043/0.02314, allocations: 148.2 kB / 287.1 MB, free: 2.758 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001703/0.02331, allocations: 0.5391 MB / 287.6 MB, free: 2.207 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003339/0.02365, allocations: 205.2 kB / 287.8 MB, free: 1.992 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006101/0.02426, allocations: 0.8737 MB / 288.7 MB, free: 0.8594 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007277/0.02499, allocations: 0.6234 MB / 289.3 MB, free: 112 kB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.961e-06/0.02499, allocations: 0 / 289.3 MB, free: 112 kB / 266.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001127/0.02612, allocations: 0.7409 MB / 290.1 MB, free: 15.34 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.867e-05/0.02617, allocations: 67.33 kB / 290.1 MB, free: 15.26 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.165e-05/0.02618, allocations: 11.94 kB / 290.2 MB, free: 15.25 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.207e-05/0.0262, allocations: 12 kB / 290.2 MB, free: 15.23 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006115/0.02681, allocations: 192 kB / 290.4 MB, free: 15.05 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.706e-05/0.02683, allocations: 19.94 kB / 290.4 MB, free: 15.03 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004896/0.02732, allocations: 123.4 kB / 290.5 MB, free: 14.91 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.131e-05/0.02738, allocations: 31.98 kB / 290.5 MB, free: 14.88 MB / 282.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.0002271/0.02761, allocations: 220.3 kB / 290.7 MB, free: 14.65 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001129/0.02772, allocations: 75.62 kB / 290.8 MB, free: 14.57 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001024/0.02782, allocations: 77.88 kB / 290.9 MB, free: 14.5 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.041e-06/0.02783, allocations: 4 kB / 290.9 MB, free: 14.5 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.741e-06/0.02784, allocations: 0 / 290.9 MB, free: 14.5 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.644e-06/0.02784, allocations: 3.984 kB / 290.9 MB, free: 14.49 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001672/0.02951, allocations: 1.057 MB / 292 MB, free: 13.39 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.428e-06/0.02952, allocations: 4 kB / 292 MB, free: 13.39 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004546/0.02997, allocations: 119.8 kB / 292.1 MB, free: 13.27 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.005e-06/0.02998, allocations: 0 / 292.1 MB, free: 13.27 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.123e-05/0.03002, allocations: 12 kB / 292.1 MB, free: 13.26 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.42e-06/0.03003, allocations: 4 kB / 292.1 MB, free: 13.26 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.936e-06/0.03003, allocations: 3.938 kB / 292.1 MB, free: 13.25 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001094/0.03112, allocations: 0.6892 MB / 292.8 MB, free: 12.54 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001058/0.03123, allocations: 71.44 kB / 292.9 MB, free: 12.47 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.363e-05/0.03131, allocations: 12 kB / 292.9 MB, free: 12.46 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003395/0.03165, allocations: 55.94 kB / 292.9 MB, free: 12.41 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001274/0.03178, allocations: 52.42 kB / 293 MB, free: 12.36 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.49e-05/0.03182, allocations: 11.98 kB / 293 MB, free: 12.34 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0003067/0.03212, allocations: 338.8 kB / 293.3 MB, free: 12.02 MB / 282.7 MB Notification: Performance of sort global known variables: time 9e-08/0.03212, allocations: 4.031 kB / 293.3 MB, free: 12.01 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0005846/0.03271, allocations: 179.8 kB / 293.5 MB, free: 11.84 MB / 282.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.0001536/0.03286, allocations: 115.2 kB / 293.6 MB, free: 11.71 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0009044/0.03377, allocations: 0.5929 MB / 294.2 MB, free: 11.07 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 3.386e-06/0.03377, allocations: 0 / 294.2 MB, free: 11.07 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003316/0.0341, allocations: 195.5 kB / 294.4 MB, free: 10.88 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005264/0.03463, allocations: 129.8 kB / 294.5 MB, free: 10.76 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001822/0.03645, allocations: 1.047 MB / 295.6 MB, free: 9.676 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.704e-05/0.03655, allocations: 130 kB / 295.7 MB, free: 9.527 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0002961/0.03684, allocations: 76.67 kB / 295.8 MB, free: 9.449 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001873/0.03703, allocations: 52.5 kB / 295.8 MB, free: 9.398 MB / 282.7 MB Notification: Performance of SimCode: time 1.453e-06/0.03703, allocations: 3.938 kB / 295.8 MB, free: 9.395 MB / 282.7 MB Notification: Performance of Templates: time 0.01408/0.05111, allocations: 9.194 MB / 305 MB, free: 328 kB / 282.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.NandGate.makefile [Timeout 660] (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=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.NandGate.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.0336415986530483]