Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001139/0.001139, allocations: 83.58 kB / 21.18 MB, free: 3.387 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001706/0.001706, allocations: 161 kB / 24.56 MB, free: 20 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.004/1.004, allocations: 177.1 MB / 205 MB, free: 4.801 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/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_4.1.0_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_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant2") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.422e-06/1.422e-06, allocations: 0 / 272.9 MB, free: 1.281 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.908e-05/3.051e-05, allocations: 2.312 kB / 272.9 MB, free: 1.277 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant2): time 0.002484/0.002514, allocations: 1.705 MB / 274.7 MB, free: 15.56 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006358/0.00315, allocations: 299.1 kB / 274.9 MB, free: 15.27 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.886e-05/0.003249, allocations: 4 kB / 274.9 MB, free: 15.27 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001338/0.003383, allocations: 27.67 kB / 275 MB, free: 15.24 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 3.778e-05/0.003421, allocations: 15.8 kB / 275 MB, free: 15.22 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003902/0.003811, allocations: 131.7 kB / 275.1 MB, free: 15.09 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002641/0.004075, allocations: 279.4 kB / 275.4 MB, free: 14.82 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002463/0.004321, allocations: 163.7 kB / 275.6 MB, free: 14.65 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001213/0.004443, allocations: 139.7 kB / 275.7 MB, free: 14.52 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001164/0.004559, allocations: 79.75 kB / 275.8 MB, free: 14.44 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 3.206e-05/0.004591, allocations: 24 kB / 275.8 MB, free: 14.41 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.252e-05/0.004654, allocations: 24 kB / 275.8 MB, free: 14.39 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 5.757e-05/0.004711, allocations: 59.81 kB / 275.9 MB, free: 14.33 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 6.439e-05/0.004775, allocations: 63.83 kB / 275.9 MB, free: 14.27 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002441/0.00502, allocations: 195.2 kB / 276.1 MB, free: 14.08 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.204e-06/0.005022, allocations: 4 kB / 276.1 MB, free: 14.07 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.002e-06/0.005023, allocations: 0 / 276.1 MB, free: 14.07 MB / 266.7 MB Notification: Performance of Transformations before backend: time 5.23e-06/0.005028, allocations: 3.938 kB / 276.1 MB, free: 14.07 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.0005615/0.00559, allocations: 0.5112 MB / 276.6 MB, free: 13.52 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.128e-05/0.005631, allocations: 12.03 kB / 276.7 MB, free: 13.51 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002102/0.005841, allocations: 52.78 kB / 276.7 MB, free: 13.46 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002265/0.006068, allocations: 184.2 kB / 276.9 MB, free: 13.25 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.206e-05/0.0061, allocations: 20.88 kB / 276.9 MB, free: 13.23 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.358e-05/0.006133, allocations: 28.38 kB / 276.9 MB, free: 13.21 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003098/0.006443, allocations: 244.8 kB / 277.2 MB, free: 12.94 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.415e-05/0.006457, allocations: 4.188 kB / 277.2 MB, free: 12.93 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.917e-05/0.006476, allocations: 8.375 kB / 277.2 MB, free: 12.93 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.218e-05/0.006488, allocations: 12.31 kB / 277.2 MB, free: 12.91 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001515/0.00664, allocations: 102.8 kB / 277.3 MB, free: 12.81 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008506/0.00749, allocations: 1.065 MB / 278.4 MB, free: 11.7 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002132/0.007704, allocations: 150.3 kB / 278.5 MB, free: 11.52 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.565e-05/0.007779, allocations: 63.44 kB / 278.6 MB, free: 11.45 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.618e-05/0.007806, allocations: 8 kB / 278.6 MB, free: 11.45 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001542/0.00796, allocations: 140.3 kB / 278.7 MB, free: 11.29 MB / 266.7 MB Notification: Performance of pre-optimization done (n=24): time 1.824e-06/0.007962, allocations: 0 / 278.7 MB, free: 11.29 MB / 266.7 MB Notification: Performance of matching and sorting (n=24): time 0.0003172/0.008279, allocations: 192 kB / 278.9 MB, free: 11.09 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.311e-05/0.008332, allocations: 89.03 kB / 279 MB, free: 10.99 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001225/0.008454, allocations: 215.9 kB / 279.2 MB, free: 10.76 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.486e-05/0.008479, allocations: 37.7 kB / 279.2 MB, free: 10.72 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.813e-05/0.008567, allocations: 187.5 kB / 279.4 MB, free: 10.53 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.863e-05/0.008606, allocations: 67.47 kB / 279.5 MB, free: 10.46 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.036e-05/0.008686, allocations: 83.47 kB / 279.6 MB, free: 10.37 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001298/0.008816, allocations: 0.5001 MB / 280.1 MB, free: 9.859 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.592e-05/0.008882, allocations: 39.97 kB / 280.1 MB, free: 9.82 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001192/0.009001, allocations: 144.8 kB / 280.2 MB, free: 9.637 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001776/0.009179, allocations: 196.6 kB / 280.4 MB, free: 9.402 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.816e-06/0.009182, allocations: 0 / 280.4 MB, free: 9.402 MB / 266.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0002459/0.009428, allocations: 233.2 kB / 280.7 MB, free: 9.168 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.639e-05/0.009444, allocations: 5.875 kB / 280.7 MB, free: 9.164 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.145e-06/0.009452, allocations: 7.984 kB / 280.7 MB, free: 9.156 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.97e-05/0.009472, allocations: 4 kB / 280.7 MB, free: 9.152 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001103/0.009582, allocations: 36.2 kB / 280.7 MB, free: 9.117 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.012e-05/0.009592, allocations: 11.94 kB / 280.7 MB, free: 9.105 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.156e-05/0.009654, allocations: 27.83 kB / 280.8 MB, free: 9.078 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.571e-05/0.00967, allocations: 16 kB / 280.8 MB, free: 9.062 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 0.0001202/0.00979, allocations: 192.4 kB / 281 MB, free: 8.863 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.244e-05/0.009812, allocations: 19.84 kB / 281 MB, free: 8.844 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.895e-05/0.009851, allocations: 24.92 kB / 281 MB, free: 8.824 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.427e-06/0.009855, allocations: 4 kB / 281 MB, free: 8.82 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.989e-06/0.00986, allocations: 0 / 281 MB, free: 8.82 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.228e-06/0.009864, allocations: 0 / 281 MB, free: 8.82 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004898/0.01035, allocations: 0.5264 MB / 281.5 MB, free: 8.25 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.957e-06/0.01036, allocations: 4 kB / 281.5 MB, free: 8.246 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.645e-05/0.0104, allocations: 15.92 kB / 281.6 MB, free: 8.23 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.139e-06/0.01041, allocations: 7.938 kB / 281.6 MB, free: 8.223 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.205e-05/0.01042, allocations: 0 / 281.6 MB, free: 8.223 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.507e-06/0.01042, allocations: 4 kB / 281.6 MB, free: 8.219 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.924e-06/0.01043, allocations: 0 / 281.6 MB, free: 8.219 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002217/0.01065, allocations: 323.3 kB / 281.9 MB, free: 7.879 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.015e-05/0.01066, allocations: 7.953 kB / 281.9 MB, free: 7.871 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.341e-05/0.01068, allocations: 11.98 kB / 281.9 MB, free: 7.859 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.442e-05/0.01073, allocations: 12 kB / 281.9 MB, free: 7.848 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.45e-05/0.01078, allocations: 11.97 kB / 281.9 MB, free: 7.836 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.248e-05/0.01079, allocations: 19.92 kB / 281.9 MB, free: 7.816 MB / 266.7 MB Notification: Performance of sorting global known variables: time 4.675e-05/0.01084, allocations: 138.5 kB / 282.1 MB, free: 7.684 MB / 266.7 MB Notification: Performance of sort global known variables: time 5.1e-08/0.01084, allocations: 0 / 282.1 MB, free: 7.684 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0001977/0.01104, allocations: 59.78 kB / 282.1 MB, free: 7.625 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 9.481e-05/0.01113, allocations: 107.2 kB / 282.2 MB, free: 7.508 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0002167/0.01135, allocations: 164.7 kB / 282.4 MB, free: 7.344 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.573e-06/0.01135, allocations: 0 / 282.4 MB, free: 7.344 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 8.024e-05/0.01143, allocations: 66.44 kB / 282.5 MB, free: 7.277 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002255/0.01166, allocations: 31.92 kB / 282.5 MB, free: 7.246 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004654/0.01212, allocations: 338.5 kB / 282.8 MB, free: 6.887 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.807e-05/0.01217, allocations: 84.27 kB / 282.9 MB, free: 6.785 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 5.059e-05/0.01222, allocations: 22.2 kB / 282.9 MB, free: 6.762 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.777e-05/0.01227, allocations: 20.5 kB / 283 MB, free: 6.738 MB / 266.7 MB Notification: Performance of SimCode: time 6.41e-07/0.01227, allocations: 3.938 kB / 283 MB, free: 6.734 MB / 266.7 MB Notification: Performance of Templates: time 0.003917/0.01619, allocations: 1.776 MB / 284.7 MB, free: 4.984 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant2.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; mkfifo Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe >> ../files/Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant2.sim & ./Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant2 -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_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: 3.1511966339312494]