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.001405/0.001405, allocations: 72.08 kB / 21.69 MB, free: 2.863 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.0009583/0.0009583, allocations: 143.8 kB / 24.97 MB, free: 8.816 MB / 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.9768/0.9768, allocations: 173.3 MB / 201.5 MB, free: 9.328 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.994e-06/1.994e-06, allocations: 0 / 268.1 MB, free: 6.723 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.508e-05/2.707e-05, allocations: 6.25 kB / 268.1 MB, free: 6.715 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.NandGate): time 0.004/0.004027, allocations: 4.136 MB / 272.2 MB, free: 2.555 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001637/0.005664, allocations: 1.175 MB / 273.4 MB, free: 1.371 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002569/0.005921, allocations: 11.94 kB / 273.4 MB, free: 1.359 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002083/0.006129, allocations: 110.8 kB / 273.5 MB, free: 1.25 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002833/0.006412, allocations: 190.2 kB / 273.7 MB, free: 1.062 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005758/0.006988, allocations: 335.5 kB / 274 MB, free: 0.7344 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0008018/0.00779, allocations: 1.12 MB / 275.1 MB, free: 15.61 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000268/0.008058, allocations: 191 kB / 275.3 MB, free: 15.42 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005573/0.008615, allocations: 0.6044 MB / 275.9 MB, free: 14.82 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003592/0.008974, allocations: 367 kB / 276.3 MB, free: 14.46 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001702/0.009145, allocations: 120 kB / 276.4 MB, free: 14.34 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001037/0.009248, allocations: 120 kB / 276.5 MB, free: 14.22 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001269/0.009375, allocations: 227.3 kB / 276.7 MB, free: 14 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002538/0.009629, allocations: 323.3 kB / 277.1 MB, free: 13.68 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006089/0.01024, allocations: 0.7166 MB / 277.8 MB, free: 12.96 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.647e-06/0.01024, allocations: 0 / 277.8 MB, free: 12.96 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.142e-06/0.01024, allocations: 4 kB / 277.8 MB, free: 12.96 MB / 266.7 MB Notification: Performance of Transformations before backend: time 8.677e-06/0.01025, allocations: 0 / 277.8 MB, free: 12.96 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.001553/0.0118, allocations: 1.216 MB / 279 MB, free: 11.69 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.143e-05/0.01185, allocations: 12.91 kB / 279 MB, free: 11.68 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001801/0.01203, allocations: 132.4 kB / 279.1 MB, free: 11.55 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004673/0.01249, allocations: 422.2 kB / 279.6 MB, free: 11.11 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.757e-05/0.01253, allocations: 45.69 kB / 279.6 MB, free: 11.06 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.052e-05/0.01261, allocations: 64.38 kB / 279.7 MB, free: 11 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001047/0.01366, allocations: 1.043 MB / 280.7 MB, free: 9.801 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.323e-05/0.01367, allocations: 4.188 kB / 280.7 MB, free: 9.797 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.206e-05/0.01372, allocations: 28.38 kB / 280.7 MB, free: 9.77 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.474e-05/0.01374, allocations: 15.94 kB / 280.8 MB, free: 9.754 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000575/0.01431, allocations: 361.6 kB / 281.1 MB, free: 9.398 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002688/0.017, allocations: 3.05 MB / 284.2 MB, free: 6.219 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007163/0.01772, allocations: 404 kB / 284.5 MB, free: 5.812 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003237/0.01804, allocations: 189.1 kB / 284.7 MB, free: 5.625 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.924e-05/0.01808, allocations: 20.48 kB / 284.8 MB, free: 5.605 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003735/0.01845, allocations: 259.8 kB / 285 MB, free: 5.336 MB / 266.7 MB Notification: Performance of pre-optimization done (n=50): time 2.475e-06/0.01846, allocations: 0 / 285 MB, free: 5.336 MB / 266.7 MB Notification: Performance of matching and sorting (n=50): time 0.0008436/0.0193, allocations: 0.5044 MB / 285.5 MB, free: 4.824 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001334/0.01943, allocations: 368.3 kB / 285.9 MB, free: 4.379 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004009/0.01983, allocations: 0.518 MB / 286.4 MB, free: 3.844 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 4.396e-05/0.01988, allocations: 41.7 kB / 286.4 MB, free: 3.797 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002004/0.02008, allocations: 431.1 kB / 286.9 MB, free: 3.367 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001042/0.02018, allocations: 174.5 kB / 287 MB, free: 3.195 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001816/0.02036, allocations: 148.2 kB / 287.2 MB, free: 3.043 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001482/0.02051, allocations: 0.5391 MB / 287.7 MB, free: 2.492 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002719/0.02078, allocations: 197.2 kB / 287.9 MB, free: 2.285 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005123/0.0213, allocations: 0.8815 MB / 288.8 MB, free: 1.145 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005951/0.02189, allocations: 0.6195 MB / 289.4 MB, free: 408 kB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.791e-06/0.0219, allocations: 4 kB / 289.4 MB, free: 404 kB / 266.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.0008845/0.02278, allocations: 0.7405 MB / 290.1 MB, free: 15.62 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.94e-05/0.02283, allocations: 67.97 kB / 290.2 MB, free: 15.54 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.078e-05/0.02284, allocations: 8 kB / 290.2 MB, free: 15.54 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.117e-05/0.02286, allocations: 16 kB / 290.2 MB, free: 15.52 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004881/0.02335, allocations: 187.8 kB / 290.4 MB, free: 15.34 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.27e-05/0.02336, allocations: 11.94 kB / 290.4 MB, free: 15.32 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004587/0.02382, allocations: 131.4 kB / 290.6 MB, free: 15.2 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.336e-05/0.02387, allocations: 36 kB / 290.6 MB, free: 15.16 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.0001796/0.02405, allocations: 212.3 kB / 290.8 MB, free: 14.94 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.19e-05/0.02414, allocations: 87.55 kB / 290.9 MB, free: 14.86 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.824e-05/0.02423, allocations: 61.95 kB / 290.9 MB, free: 14.8 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.478e-06/0.02423, allocations: 4 kB / 290.9 MB, free: 14.79 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.344e-06/0.02424, allocations: 3.984 kB / 291 MB, free: 14.79 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.57e-06/0.02424, allocations: 0 / 291 MB, free: 14.79 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001236/0.02548, allocations: 1.065 MB / 292 MB, free: 13.68 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.757e-06/0.02548, allocations: 4 kB / 292 MB, free: 13.68 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003338/0.02582, allocations: 115.8 kB / 292.1 MB, free: 13.57 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.821e-06/0.02582, allocations: 4 kB / 292.1 MB, free: 13.56 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.256e-05/0.02586, allocations: 15.92 kB / 292.2 MB, free: 13.55 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.316e-06/0.02586, allocations: 4 kB / 292.2 MB, free: 13.54 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.364e-06/0.02586, allocations: 0 / 292.2 MB, free: 13.54 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000859/0.02672, allocations: 0.6853 MB / 292.8 MB, free: 12.84 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.939e-05/0.02679, allocations: 71.44 kB / 292.9 MB, free: 12.77 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.361e-05/0.02685, allocations: 12 kB / 292.9 MB, free: 12.75 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002538/0.02711, allocations: 63.97 kB / 293 MB, free: 12.69 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001087/0.02722, allocations: 52.39 kB / 293 MB, free: 12.64 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.668e-05/0.02724, allocations: 16 kB / 293.1 MB, free: 12.62 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0002399/0.02748, allocations: 334.8 kB / 293.4 MB, free: 12.3 MB / 282.7 MB Notification: Performance of sort global known variables: time 6e-08/0.02748, allocations: 0 / 293.4 MB, free: 12.3 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.000401/0.02788, allocations: 183.8 kB / 293.6 MB, free: 12.12 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.0001275/0.02801, allocations: 114.2 kB / 293.7 MB, free: 12 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0007134/0.02872, allocations: 0.5936 MB / 294.3 MB, free: 11.36 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 3.777e-06/0.02873, allocations: 4 kB / 294.3 MB, free: 11.36 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002665/0.02899, allocations: 191.5 kB / 294.5 MB, free: 11.17 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004118/0.02941, allocations: 118.2 kB / 294.6 MB, free: 11.05 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001523/0.03093, allocations: 1.055 MB / 295.6 MB, free: 9.965 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.768e-05/0.03101, allocations: 126 kB / 295.7 MB, free: 9.82 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0002333/0.03124, allocations: 84.66 kB / 295.8 MB, free: 9.734 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001505/0.03139, allocations: 56.48 kB / 295.9 MB, free: 9.68 MB / 282.7 MB Notification: Performance of SimCode: time 9.41e-07/0.03139, allocations: 3.938 kB / 295.9 MB, free: 9.676 MB / 282.7 MB Notification: Performance of Templates: time 0.01027/0.04166, allocations: 8.721 MB / 304.6 MB, free: 1.078 MB / 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.0049932471010834]