Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample.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.001708/0.001708, allocations: 73.56 kB / 21.24 MB, free: 0.5547 MB / 14.72 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.002323/0.002323, allocations: 158.9 kB / 24.5 MB, free: 3.715 MB / 14.72 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.46/1.46, allocations: 177.2 MB / 204.9 MB, free: 8.988 MB / 190.1 MB " [Timeout remaining time 178] 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,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5012,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample") translateModel(Modelica.StateGraph.Examples.FirstExample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5012,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002207/0.002207, allocations: 50.88 kB / 325.5 MB, free: 268 kB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1211/0.1233, allocations: 53.34 MB / 378.9 MB, free: 15.68 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample): time 0.002636/0.126, allocations: 1.473 MB / 380.3 MB, free: 14.2 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006198/0.1266, allocations: 283.2 kB / 380.6 MB, free: 13.92 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.058e-05/0.1267, allocations: 7.938 kB / 380.6 MB, free: 13.91 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001152/0.1268, allocations: 23.73 kB / 380.7 MB, free: 13.89 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 4.535e-05/0.1268, allocations: 11.81 kB / 380.7 MB, free: 13.88 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003593/0.1272, allocations: 131.7 kB / 380.8 MB, free: 13.75 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003184/0.1275, allocations: 263.5 kB / 381.1 MB, free: 13.49 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002327/0.1277, allocations: 126.8 kB / 381.2 MB, free: 13.36 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.445e-05/0.1278, allocations: 87.77 kB / 381.3 MB, free: 13.28 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001251/0.1279, allocations: 83.53 kB / 381.3 MB, free: 13.2 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.438e-05/0.128, allocations: 24 kB / 381.4 MB, free: 13.17 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.472e-05/0.1281, allocations: 27.94 kB / 381.4 MB, free: 13.14 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.608e-05/0.1281, allocations: 59.83 kB / 381.5 MB, free: 13.09 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 8.692e-05/0.1282, allocations: 79.64 kB / 381.5 MB, free: 13.01 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003092/0.1285, allocations: 243 kB / 381.8 MB, free: 12.77 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.216e-06/0.1285, allocations: 0 / 381.8 MB, free: 12.77 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.001e-06/0.1285, allocations: 0 / 381.8 MB, free: 12.77 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.508e-06/0.1285, allocations: 0 / 381.8 MB, free: 12.77 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 55 * Number of variables: 55 Notification: Performance of Generate backend data structure: time 0.0006084/0.1291, allocations: 417.1 kB / 382.2 MB, free: 12.33 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.92e-05/0.1292, allocations: 8.031 kB / 382.2 MB, free: 12.32 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002396/0.1294, allocations: 32.81 kB / 382.2 MB, free: 12.29 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002686/0.1297, allocations: 174.2 kB / 382.4 MB, free: 12.1 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.671e-05/0.1297, allocations: 24.88 kB / 382.4 MB, free: 12.07 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.423e-05/0.1297, allocations: 24.38 kB / 382.4 MB, free: 12.05 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000413/0.1302, allocations: 239.3 kB / 382.7 MB, free: 11.8 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.035e-05/0.1302, allocations: 192 / 382.7 MB, free: 11.8 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.262e-05/0.1302, allocations: 7.938 kB / 382.7 MB, free: 11.8 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.438e-06/0.1302, allocations: 8 kB / 382.7 MB, free: 11.79 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002978/0.1305, allocations: 157.9 kB / 382.8 MB, free: 11.63 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008759/0.1314, allocations: 0.5739 MB / 383.4 MB, free: 11.03 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002858/0.1317, allocations: 158.7 kB / 383.6 MB, free: 10.86 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001157/0.1318, allocations: 72.02 kB / 383.6 MB, free: 10.79 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.412e-05/0.1318, allocations: 4 kB / 383.6 MB, free: 10.79 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001877/0.132, allocations: 115.3 kB / 383.8 MB, free: 10.66 MB / 350.1 MB Notification: Performance of pre-optimization done (n=24): time 1.492e-06/0.132, allocations: 0 / 383.8 MB, free: 10.66 MB / 350.1 MB Notification: Performance of matching and sorting (n=24): time 0.0004519/0.1324, allocations: 224.1 kB / 384 MB, free: 10.44 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.576e-05/0.1325, allocations: 55.41 kB / 384 MB, free: 10.38 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001268/0.1326, allocations: 153.9 kB / 384.2 MB, free: 10.21 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.167e-05/0.1326, allocations: 37.7 kB / 384.2 MB, free: 10.17 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.453e-05/0.1327, allocations: 136.9 kB / 384.3 MB, free: 10.03 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.512e-05/0.1328, allocations: 59.48 kB / 384.4 MB, free: 9.973 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001056/0.1329, allocations: 82 kB / 384.5 MB, free: 9.883 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001542/0.133, allocations: 322.8 kB / 384.8 MB, free: 9.559 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001211/0.1332, allocations: 64.62 kB / 384.9 MB, free: 9.496 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001726/0.1333, allocations: 128.1 kB / 385 MB, free: 9.348 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000259/0.1336, allocations: 171.1 kB / 385.2 MB, free: 9.156 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.228e-06/0.1336, allocations: 8 kB / 385.2 MB, free: 9.148 MB / 350.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0003699/0.134, allocations: 245.2 kB / 385.4 MB, free: 8.902 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.454e-05/0.134, allocations: 7.984 kB / 385.4 MB, free: 8.895 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.364e-06/0.134, allocations: 4 kB / 385.4 MB, free: 8.891 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.236e-05/0.134, allocations: 4 kB / 385.4 MB, free: 8.887 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001169/0.1341, allocations: 23.92 kB / 385.4 MB, free: 8.863 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.049e-06/0.1341, allocations: 4 kB / 385.4 MB, free: 8.859 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.758e-05/0.1342, allocations: 28.06 kB / 385.5 MB, free: 8.832 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.057e-05/0.1342, allocations: 16 kB / 385.5 MB, free: 8.816 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 31 ($PRE.transition1.enableFire,$PRE.transition2.enableFire,stateGraphRoot.activeSteps,transition2.t_start,$PRE.transition2.t_start,transition2.fire,transition2.enableFire,step.oldActive,$PRE.step.oldActive,step.newActive,$PRE.step.newActive,step.localActive,$PRE.step.localActive,step.active,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,stateGraphRoot.resume,stateGraphRoot.suspend,transition2.condition,transition1.condition) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (39): * Single equations (assignments): 39 * 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.0001527/0.1344, allocations: 157.7 kB / 385.6 MB, free: 8.652 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.359e-05/0.1344, allocations: 15.84 kB / 385.7 MB, free: 8.637 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.832e-05/0.1345, allocations: 16.94 kB / 385.7 MB, free: 8.617 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.188e-06/0.1345, allocations: 3.984 kB / 385.7 MB, free: 8.613 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.916e-06/0.1345, allocations: 4 kB / 385.7 MB, free: 8.609 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.6e-06/0.1345, allocations: 3.984 kB / 385.7 MB, free: 8.605 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006481/0.1351, allocations: 470.1 kB / 386.1 MB, free: 8.109 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.663e-06/0.1351, allocations: 4 kB / 386.1 MB, free: 8.105 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.955e-05/0.1352, allocations: 19.92 kB / 386.2 MB, free: 8.086 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.438e-06/0.1352, allocations: 4 kB / 386.2 MB, free: 8.082 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.209e-05/0.1352, allocations: 4 kB / 386.2 MB, free: 8.078 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.593e-06/0.1352, allocations: 0 / 386.2 MB, free: 8.078 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.11e-07/0.1352, allocations: 0 / 386.2 MB, free: 8.078 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003341/0.1356, allocations: 282.2 kB / 386.5 MB, free: 7.789 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.131e-05/0.1356, allocations: 15.89 kB / 386.5 MB, free: 7.773 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.409e-05/0.1356, allocations: 4 kB / 386.5 MB, free: 7.77 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.905e-05/0.1357, allocations: 11.94 kB / 386.5 MB, free: 7.758 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.764e-05/0.1358, allocations: 27.95 kB / 386.5 MB, free: 7.73 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.374e-05/0.1358, allocations: 8 kB / 386.5 MB, free: 7.723 MB / 350.1 MB Notification: Performance of sorting global known variables: time 7.774e-05/0.1359, allocations: 91.27 kB / 386.6 MB, free: 7.633 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1359, allocations: 0 / 386.6 MB, free: 7.633 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002959/0.1361, allocations: 47.89 kB / 386.7 MB, free: 7.586 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 17 (transition2.enableFire,step.active,transition1.enableFire,initialStep.active,$whenCondition2,$whenCondition1,initialStep.localActive,initialStep.newActive,initialStep.oldActive,transition1.fire,transition1.t_start,step.localActive,step.newActive,step.oldActive,transition2.fire,transition2.t_start,stateGraphRoot.activeSteps) * Number of discrete states: 2 (initialStep.newActive,step.newActive) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (24): * Single equations (assignments): 20 * 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.0001041/0.1363, allocations: 99.25 kB / 386.8 MB, free: 7.48 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003273/0.1366, allocations: 167.7 kB / 386.9 MB, free: 7.316 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.593e-06/0.1366, allocations: 448 / 386.9 MB, free: 7.316 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001312/0.1367, allocations: 83.7 kB / 387 MB, free: 7.234 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002727/0.137, allocations: 18.81 kB / 387 MB, free: 7.219 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005806/0.1376, allocations: 317.6 kB / 387.3 MB, free: 6.883 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001301/0.1377, allocations: 128.5 kB / 387.5 MB, free: 6.734 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 6.431e-05/0.1378, allocations: 17.95 kB / 387.5 MB, free: 6.719 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.018e-05/0.1378, allocations: 20.5 kB / 387.5 MB, free: 6.695 MB / 350.1 MB Notification: Performance of SimCode: time 3.01e-07/0.1378, allocations: 0 / 387.5 MB, free: 6.695 MB / 350.1 MB Notification: Performance of Templates: time 0.005005/0.1428, allocations: 1.71 MB / 389.2 MB, free: 5.008 MB / 350.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample.pipe ; mkfifo Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample.pipe >> ../files/Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample.sim & ./Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample -abortSlowSimulation -alarm=480 -s ida -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/StateGraph/Examples/FirstExample/FirstExample.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.253633067943156]