Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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.001787/0.001787, allocations: 82.7 kB / 22 MB, free: 5.18 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.002035/0.002035, allocations: 161.8 kB / 25.25 MB, free: 3.02 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.368/1.368, allocations: 158.6 MB / 187 MB, free: 6.48 MB / 174.1 MB " [Timeout remaining time 178] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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=5006,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample") translateModel(Modelica.StateGraph.Examples.FirstExample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5006,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample") [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001833/0.001833, allocations: 54.73 kB / 299.3 MB, free: 6.891 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2758/0.2777, allocations: 49.15 MB / 348.5 MB, free: 15.51 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample): time 0.00299/0.2807, allocations: 1.436 MB / 349.9 MB, free: 14.07 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007088/0.2814, allocations: 247.3 kB / 350.2 MB, free: 13.82 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000102/0.2815, allocations: 3.938 kB / 350.2 MB, free: 13.82 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001272/0.2816, allocations: 23.73 kB / 350.2 MB, free: 13.8 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 5.763e-05/0.2816, allocations: 19.8 kB / 350.2 MB, free: 13.78 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004691/0.2821, allocations: 119.8 kB / 350.3 MB, free: 13.66 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004104/0.2825, allocations: 259.6 kB / 350.6 MB, free: 13.41 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003229/0.2828, allocations: 150.5 kB / 350.7 MB, free: 13.26 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001152/0.283, allocations: 83.72 kB / 350.8 MB, free: 13.18 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001581/0.2831, allocations: 91.52 kB / 350.9 MB, free: 13.09 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.278e-05/0.2832, allocations: 24 kB / 350.9 MB, free: 13.07 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.091e-05/0.2832, allocations: 28 kB / 351 MB, free: 13.04 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 8.893e-05/0.2833, allocations: 67.75 kB / 351 MB, free: 12.97 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 9.593e-05/0.2834, allocations: 71.66 kB / 351.1 MB, free: 12.9 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003706/0.2838, allocations: 241.4 kB / 351.3 MB, free: 12.67 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.809e-06/0.2838, allocations: 0 / 351.3 MB, free: 12.67 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.234e-06/0.2838, allocations: 0 / 351.3 MB, free: 12.67 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.603e-06/0.2838, allocations: 0 / 351.3 MB, free: 12.67 MB / 318.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.0007487/0.2846, allocations: 425.1 kB / 351.7 MB, free: 12.22 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.226e-05/0.2846, allocations: 11.98 kB / 351.8 MB, free: 12.21 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.453e-05/0.2847, allocations: 24.8 kB / 351.8 MB, free: 12.19 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003273/0.285, allocations: 166.2 kB / 351.9 MB, free: 12 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.67e-05/0.285, allocations: 16.88 kB / 352 MB, free: 11.98 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.65e-05/0.2851, allocations: 32.36 kB / 352 MB, free: 11.95 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004623/0.2856, allocations: 239.3 kB / 352.2 MB, free: 11.71 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.929e-05/0.2856, allocations: 4.188 kB / 352.2 MB, free: 11.7 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.588e-05/0.2856, allocations: 7.938 kB / 352.2 MB, free: 11.7 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.647e-06/0.2856, allocations: 8 kB / 352.2 MB, free: 11.69 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003242/0.2859, allocations: 165.8 kB / 352.4 MB, free: 11.52 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009996/0.2869, allocations: 0.5739 MB / 353 MB, free: 10.91 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003129/0.2872, allocations: 154.8 kB / 353.1 MB, free: 10.75 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001321/0.2874, allocations: 68.83 kB / 353.2 MB, free: 10.68 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.552e-05/0.2874, allocations: 4 kB / 353.2 MB, free: 10.68 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002178/0.2876, allocations: 127.1 kB / 353.3 MB, free: 10.54 MB / 318.1 MB Notification: Performance of pre-optimization done (n=24): time 1.723e-06/0.2876, allocations: 0 / 353.3 MB, free: 10.54 MB / 318.1 MB Notification: Performance of matching and sorting (n=24): time 0.0004623/0.2881, allocations: 225.2 kB / 353.5 MB, free: 10.32 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.555e-05/0.2881, allocations: 67.39 kB / 353.6 MB, free: 10.24 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001568/0.2883, allocations: 142 kB / 353.8 MB, free: 10.09 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3.591e-05/0.2883, allocations: 37.7 kB / 353.8 MB, free: 10.05 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001047/0.2884, allocations: 132.8 kB / 353.9 MB, free: 9.914 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.152e-05/0.2885, allocations: 63.55 kB / 354 MB, free: 9.852 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001017/0.2886, allocations: 70.02 kB / 354 MB, free: 9.773 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001643/0.2888, allocations: 330.8 kB / 354.4 MB, free: 9.441 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001202/0.2889, allocations: 60.62 kB / 354.4 MB, free: 9.383 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001715/0.2891, allocations: 124.1 kB / 354.6 MB, free: 9.238 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002697/0.2893, allocations: 174.7 kB / 354.7 MB, free: 9.043 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.164e-06/0.2893, allocations: 0 / 354.7 MB, free: 9.043 MB / 318.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.000394/0.2897, allocations: 249.3 kB / 355 MB, free: 8.793 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.516e-05/0.2897, allocations: 4.219 kB / 355 MB, free: 8.789 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.734e-06/0.2897, allocations: 8 kB / 355 MB, free: 8.781 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.82e-05/0.2898, allocations: 4 kB / 355 MB, free: 8.777 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001407/0.2899, allocations: 31.92 kB / 355 MB, free: 8.746 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.076e-05/0.2899, allocations: 3.984 kB / 355 MB, free: 8.742 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001017/0.29, allocations: 27.78 kB / 355 MB, free: 8.715 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.214e-05/0.29, allocations: 19.94 kB / 355.1 MB, free: 8.695 MB / 318.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.0001754/0.2902, allocations: 149.8 kB / 355.2 MB, free: 8.539 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.921e-05/0.2903, allocations: 19.84 kB / 355.2 MB, free: 8.52 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003841/0.2906, allocations: 202.4 kB / 355.4 MB, free: 8.316 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.32e-06/0.2906, allocations: 8 kB / 355.4 MB, free: 8.309 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.911e-06/0.2906, allocations: 0 / 355.4 MB, free: 8.309 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.797e-06/0.2907, allocations: 3.984 kB / 355.4 MB, free: 8.305 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007547/0.2914, allocations: 494.6 kB / 355.9 MB, free: 7.785 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.034e-06/0.2914, allocations: 0 / 355.9 MB, free: 7.785 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.781e-05/0.2915, allocations: 15.98 kB / 355.9 MB, free: 7.77 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.094e-06/0.2915, allocations: 4 kB / 355.9 MB, free: 7.766 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.459e-05/0.2915, allocations: 4 kB / 355.9 MB, free: 7.762 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.713e-06/0.2915, allocations: 0 / 355.9 MB, free: 7.762 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.41e-07/0.2915, allocations: 7.938 kB / 356 MB, free: 7.754 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003427/0.2919, allocations: 283.3 kB / 356.2 MB, free: 7.461 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.123e-05/0.2919, allocations: 15.84 kB / 356.2 MB, free: 7.445 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.38e-05/0.2919, allocations: 4 kB / 356.2 MB, free: 7.441 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.365e-05/0.292, allocations: 11.98 kB / 356.3 MB, free: 7.43 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.103e-05/0.2921, allocations: 15.97 kB / 356.3 MB, free: 7.414 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.488e-05/0.2921, allocations: 15.98 kB / 356.3 MB, free: 7.398 MB / 318.1 MB Notification: Performance of sorting global known variables: time 6.35e-05/0.2922, allocations: 91.78 kB / 356.4 MB, free: 7.309 MB / 318.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2922, allocations: 0 / 356.4 MB, free: 7.309 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003035/0.2925, allocations: 59.81 kB / 356.4 MB, free: 7.25 MB / 318.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: 19 (transition2.enableFire,step.active,transition1.enableFire,initialStep.active,$cse1,$cse2,$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 (26): * Single equations (assignments): 22 * 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.0002135/0.2927, allocations: 111.2 kB / 356.5 MB, free: 7.133 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0003512/0.293, allocations: 167.8 kB / 356.7 MB, free: 6.969 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 1.964e-06/0.293, allocations: 0 / 356.7 MB, free: 6.969 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001332/0.2932, allocations: 75.91 kB / 356.8 MB, free: 6.895 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003246/0.2935, allocations: 23.97 kB / 356.8 MB, free: 6.871 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006118/0.2941, allocations: 328.3 kB / 357.1 MB, free: 6.52 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000134/0.2942, allocations: 129 kB / 357.3 MB, free: 6.375 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 7.731e-05/0.2943, allocations: 25.94 kB / 357.3 MB, free: 6.352 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.079e-05/0.2944, allocations: 20.5 kB / 357.3 MB, free: 6.328 MB / 318.1 MB Notification: Performance of SimCode: time 3.41e-07/0.2944, allocations: 4 kB / 357.3 MB, free: 6.324 MB / 318.1 MB Notification: Performance of Templates: time 0.005815/0.3002, allocations: 1.944 MB / 359.2 MB, free: 4.383 MB / 318.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample.pipe ; mkfifo Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample.pipe >> ../files/Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample.sim & ./Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample -abortSlowSimulation -alarm=480 -s ida -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/StateGraph/Examples/FirstExample/FirstExample.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_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.351302019087598]