Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001496/0.001496, allocations: 91.5 kB / 21.2 MB, free: 3.375 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00186/0.00186, allocations: 156.5 kB / 24.55 MB, free: 20 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.9772/0.9772, allocations: 177 MB / 204.8 MB, free: 5.566 MB / 186.7 MB " [Timeout remaining time 179] 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.StateGraph.Examples.FirstExample_Variant2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5012,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2") translateModel(Modelica.StateGraph.Examples.FirstExample_Variant2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5012,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.644e-06/1.644e-06, allocations: 0 / 272.9 MB, free: 1.48 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.483e-05/2.647e-05, allocations: 5.266 kB / 272.9 MB, free: 1.477 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant2): time 0.001983/0.00201, allocations: 1.709 MB / 274.6 MB, free: 15.76 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.0005303/0.00254, allocations: 307.1 kB / 274.9 MB, free: 15.46 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.035e-05/0.002621, allocations: 7.938 kB / 274.9 MB, free: 15.45 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001245/0.002745, allocations: 23.69 kB / 274.9 MB, free: 15.43 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 3.906e-05/0.002784, allocations: 23.72 kB / 274.9 MB, free: 15.4 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003896/0.003174, allocations: 123.8 kB / 275.1 MB, free: 15.28 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002573/0.003431, allocations: 279.4 kB / 275.3 MB, free: 15.01 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002466/0.003678, allocations: 167.7 kB / 275.5 MB, free: 14.84 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001141/0.003792, allocations: 131.8 kB / 275.6 MB, free: 14.71 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001052/0.003897, allocations: 75.75 kB / 275.7 MB, free: 14.63 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 3.079e-05/0.003928, allocations: 24 kB / 275.7 MB, free: 14.61 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.022e-05/0.003988, allocations: 39.88 kB / 275.8 MB, free: 14.57 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 5.685e-05/0.004045, allocations: 59.8 kB / 275.8 MB, free: 14.51 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 6.369e-05/0.004109, allocations: 67.83 kB / 275.9 MB, free: 14.45 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002128/0.004321, allocations: 183.3 kB / 276.1 MB, free: 14.27 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.104e-06/0.004323, allocations: 0 / 276.1 MB, free: 14.27 MB / 266.7 MB Notification: Performance of FrontEnd: time 9.02e-07/0.004324, allocations: 0 / 276.1 MB, free: 14.27 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.909e-06/0.004329, allocations: 0 / 276.1 MB, free: 14.27 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: 60 * Number of variables: 60 Notification: Performance of Generate backend data structure: time 0.0005546/0.004884, allocations: 0.519 MB / 276.6 MB, free: 13.71 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.335e-05/0.004927, allocations: 11.98 kB / 276.6 MB, free: 13.7 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002059/0.005133, allocations: 56.78 kB / 276.7 MB, free: 13.64 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002026/0.005336, allocations: 184.2 kB / 276.8 MB, free: 13.44 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.775e-05/0.005363, allocations: 20.88 kB / 276.9 MB, free: 13.42 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.513e-05/0.005388, allocations: 28.36 kB / 276.9 MB, free: 13.39 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002742/0.005663, allocations: 248.7 kB / 277.1 MB, free: 13.12 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.028e-05/0.005673, allocations: 192 / 277.1 MB, free: 13.12 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.905e-05/0.005692, allocations: 12.38 kB / 277.1 MB, free: 13.11 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.007e-06/0.005701, allocations: 8.375 kB / 277.1 MB, free: 13.1 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001489/0.00585, allocations: 102.8 kB / 277.2 MB, free: 13 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007859/0.006636, allocations: 1.069 MB / 278.3 MB, free: 11.88 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001879/0.006824, allocations: 146.4 kB / 278.5 MB, free: 11.71 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.713e-05/0.006891, allocations: 59.34 kB / 278.5 MB, free: 11.64 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.624e-05/0.006907, allocations: 4 kB / 278.5 MB, free: 11.64 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001365/0.007043, allocations: 140.2 kB / 278.7 MB, free: 11.48 MB / 266.7 MB Notification: Performance of pre-optimization done (n=24): time 1.382e-06/0.007045, allocations: 0 / 278.7 MB, free: 11.48 MB / 266.7 MB Notification: Performance of matching and sorting (n=24): time 0.0002803/0.007325, allocations: 194.8 kB / 278.8 MB, free: 11.28 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.597e-05/0.007361, allocations: 81.11 kB / 278.9 MB, free: 11.18 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001086/0.00747, allocations: 224.7 kB / 279.1 MB, free: 10.95 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.925e-05/0.007489, allocations: 33.7 kB / 279.2 MB, free: 10.91 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.172e-05/0.007571, allocations: 183.5 kB / 279.4 MB, free: 10.72 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.097e-05/0.007612, allocations: 71.47 kB / 279.4 MB, free: 10.65 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.319e-05/0.007695, allocations: 87.33 kB / 279.5 MB, free: 10.56 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001209/0.007816, allocations: 0.4962 MB / 280 MB, free: 10.05 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.034e-05/0.007876, allocations: 39.97 kB / 280 MB, free: 10.01 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001067/0.007983, allocations: 144.9 kB / 280.2 MB, free: 9.828 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001658/0.008149, allocations: 192.6 kB / 280.4 MB, free: 9.598 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.126e-06/0.008152, allocations: 0 / 280.4 MB, free: 9.598 MB / 266.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0002273/0.008379, allocations: 237.2 kB / 280.6 MB, free: 9.359 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.393e-05/0.008393, allocations: 15.92 kB / 280.6 MB, free: 9.344 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.12e-06/0.008398, allocations: 0 / 280.6 MB, free: 9.344 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.477e-05/0.008413, allocations: 4 kB / 280.6 MB, free: 9.34 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.501e-05/0.008508, allocations: 39.92 kB / 280.7 MB, free: 9.301 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.242e-06/0.008514, allocations: 4 kB / 280.7 MB, free: 9.297 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.48e-05/0.008569, allocations: 23.84 kB / 280.7 MB, free: 9.273 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.237e-05/0.008581, allocations: 12.28 kB / 280.7 MB, free: 9.262 MB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 32 ($PRE.transition1.enableFire,$PRE.transition2.enableFire,stateGraphRoot.activeSteps,timer.entryTime,$PRE.timer.entryTime,transition2.enableFire,transition2.localCondition,step.active,step.oldActive,$PRE.step.oldActive,step.newActive,$PRE.step.newActive,step.localActive,$PRE.step.localActive,transition1.t_start,$PRE.transition1.t_start,transition1.fire,transition1.enableFire,initialStep.oldActive,$PRE.initialStep.oldActive,initialStep.newActive,$PRE.initialStep.newActive,initialStep.localActive,$PRE.initialStep.localActive,initialStep.active,$whenCondition1,$whenCondition2,transition2.t_start,$PRE.transition2.t_start,stateGraphRoot.resume,stateGraphRoot.suspend,transition1.condition) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (41): * Single equations (assignments): 41 * Array equations: 0 * Algorithm blocks: 0 * 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 8.815e-05/0.008669, allocations: 196.4 kB / 280.9 MB, free: 9.059 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.088e-05/0.00869, allocations: 23.84 kB / 280.9 MB, free: 9.035 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.715e-05/0.008717, allocations: 16.94 kB / 280.9 MB, free: 9.023 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.775e-06/0.00872, allocations: 4 kB / 280.9 MB, free: 9.02 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.837e-06/0.008724, allocations: 3.938 kB / 280.9 MB, free: 9.016 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.201e-06/0.00873, allocations: 7.969 kB / 281 MB, free: 9.008 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004131/0.009143, allocations: 0.5283 MB / 281.5 MB, free: 8.434 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.463e-06/0.009145, allocations: 0 / 281.5 MB, free: 8.434 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.69e-05/0.009182, allocations: 15.98 kB / 281.5 MB, free: 8.418 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.444e-06/0.009184, allocations: 4 kB / 281.5 MB, free: 8.414 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.698e-06/0.009194, allocations: 4 kB / 281.5 MB, free: 8.41 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.523e-06/0.009195, allocations: 4 kB / 281.5 MB, free: 8.406 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.22e-07/0.009196, allocations: 0 / 281.5 MB, free: 8.406 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001961/0.009392, allocations: 332.1 kB / 281.8 MB, free: 8.059 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.927e-06/0.009401, allocations: 7.953 kB / 281.8 MB, free: 8.051 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.813e-05/0.009419, allocations: 8 kB / 281.8 MB, free: 8.043 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.208e-05/0.009462, allocations: 11.98 kB / 281.9 MB, free: 8.031 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.14e-05/0.009513, allocations: 15.97 kB / 281.9 MB, free: 8.016 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.668e-06/0.009523, allocations: 8 kB / 281.9 MB, free: 8.008 MB / 266.7 MB Notification: Performance of sorting global known variables: time 4.314e-05/0.009566, allocations: 139.2 kB / 282 MB, free: 7.871 MB / 266.7 MB Notification: Performance of sort global known variables: time 6e-08/0.009566, allocations: 4 kB / 282 MB, free: 7.867 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0001911/0.009757, allocations: 55.78 kB / 282.1 MB, free: 7.812 MB / 266.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 18 (transition2.t_start,step.localActive,step.active,transition1.enableFire,initialStep.active,$whenCondition2,$whenCondition1,initialStep.localActive,initialStep.newActive,initialStep.oldActive,transition1.fire,transition1.t_start,step.newActive,step.oldActive,transition2.localCondition,transition2.enableFire,timer.entryTime,stateGraphRoot.activeSteps) * Number of discrete states: 3 (initialStep.newActive,step.newActive,transition2.t_start) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (24): * Single equations (assignments): 19 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 5 * 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 7.832e-05/0.009835, allocations: 119 kB / 282.2 MB, free: 7.684 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0002005/0.01004, allocations: 156.4 kB / 282.3 MB, free: 7.527 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.794e-06/0.01004, allocations: 0 / 282.3 MB, free: 7.527 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 7.076e-05/0.01011, allocations: 68.09 kB / 282.4 MB, free: 7.457 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001942/0.0103, allocations: 28.05 kB / 282.4 MB, free: 7.43 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004059/0.01071, allocations: 334.5 kB / 282.8 MB, free: 7.074 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.41e-05/0.01075, allocations: 80.28 kB / 282.8 MB, free: 6.977 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 5.094e-05/0.0108, allocations: 25.88 kB / 282.9 MB, free: 6.949 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.42e-05/0.01085, allocations: 24.5 kB / 282.9 MB, free: 6.922 MB / 266.7 MB Notification: Performance of SimCode: time 4.71e-07/0.01085, allocations: 0 / 282.9 MB, free: 6.922 MB / 266.7 MB Notification: Performance of Templates: time 0.003547/0.0144, allocations: 1.861 MB / 284.8 MB, free: 5.082 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; mkfifo Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; head -c 1048576 < Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe >> ../files/Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2.sim & ./Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2 -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/StateGraph/Examples/FirstExample_Variant2/FirstExample_Variant2.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: 2.759660144802183]