Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3.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.001946/0.001946, allocations: 111.2 kB / 21.93 MB, free: 5.223 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.00245/0.00245, allocations: 213.5 kB / 25.22 MB, free: 3.027 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.436/1.436, allocations: 207.7 MB / 236.1 MB, free: 9.816 MB / 190.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_Variant3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5009,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3") translateModel(Modelica.StateGraph.Examples.FirstExample_Variant3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5009,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3") [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.001974/0.001974, allocations: 67.86 kB / 348.4 MB, free: 9.414 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2832/0.2852, allocations: 49.15 MB / 397.6 MB, free: 9.395 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant3): time 0.004025/0.2892, allocations: 1.669 MB / 399.2 MB, free: 8.254 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009266/0.2901, allocations: 258.9 kB / 399.5 MB, free: 8.082 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001205/0.2902, allocations: 6.625 kB / 399.5 MB, free: 8.078 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001675/0.2904, allocations: 31.8 kB / 399.5 MB, free: 8.055 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 9.098e-05/0.2905, allocations: 15.2 kB / 399.5 MB, free: 8.043 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005477/0.291, allocations: 121.3 kB / 399.7 MB, free: 7.98 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004648/0.2915, allocations: 271.3 kB / 399.9 MB, free: 7.863 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003542/0.2919, allocations: 154 kB / 400.1 MB, free: 7.793 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001267/0.292, allocations: 95.66 kB / 400.2 MB, free: 7.742 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001413/0.2921, allocations: 88.45 kB / 400.3 MB, free: 7.695 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.404e-05/0.2922, allocations: 22.94 kB / 400.3 MB, free: 7.695 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.188e-05/0.2923, allocations: 32.62 kB / 400.3 MB, free: 7.691 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 6.526e-05/0.2923, allocations: 55.55 kB / 400.4 MB, free: 7.656 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 8.341e-05/0.2924, allocations: 78.06 kB / 400.4 MB, free: 7.609 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003715/0.2928, allocations: 251.6 kB / 400.7 MB, free: 7.5 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.105e-06/0.2928, allocations: 4 kB / 400.7 MB, free: 7.496 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.843e-06/0.2928, allocations: 0 / 400.7 MB, free: 7.496 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.844e-06/0.2928, allocations: 0 / 400.7 MB, free: 7.496 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: 60 * Number of variables: 60 Notification: Performance of Generate backend data structure: time 0.0006039/0.2934, allocations: 428.4 kB / 401.1 MB, free: 7.133 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.096e-05/0.2934, allocations: 13.77 kB / 401.1 MB, free: 7.129 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.819e-05/0.2935, allocations: 25.39 kB / 401.2 MB, free: 7.117 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003007/0.2938, allocations: 170.9 kB / 401.3 MB, free: 6.957 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.744e-05/0.2938, allocations: 21.94 kB / 401.3 MB, free: 6.945 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.627e-05/0.2939, allocations: 27.42 kB / 401.4 MB, free: 6.938 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004793/0.2944, allocations: 278.2 kB / 401.6 MB, free: 6.785 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.333e-05/0.2944, allocations: 4.188 kB / 401.6 MB, free: 6.781 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.565e-05/0.2944, allocations: 15.58 kB / 401.7 MB, free: 6.77 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.012e-05/0.2944, allocations: 5.5 kB / 401.7 MB, free: 6.77 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003161/0.2947, allocations: 164.8 kB / 401.8 MB, free: 6.711 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009743/0.2957, allocations: 0.8388 MB / 402.7 MB, free: 6.016 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002925/0.296, allocations: 137 kB / 402.8 MB, free: 5.949 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001158/0.2961, allocations: 66.17 kB / 402.9 MB, free: 5.918 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.282e-05/0.2961, allocations: 2.281 kB / 402.9 MB, free: 5.918 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001943/0.2963, allocations: 124.6 kB / 403 MB, free: 5.836 MB / 318.1 MB Notification: Performance of pre-optimization done (n=23): time 1.443e-06/0.2963, allocations: 0 / 403 MB, free: 5.836 MB / 318.1 MB Notification: Performance of matching and sorting (n=23): time 0.000438/0.2968, allocations: 217.4 kB / 403.2 MB, free: 5.742 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.044e-05/0.2968, allocations: 54.88 kB / 403.3 MB, free: 5.68 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001046/0.2969, allocations: 166.9 kB / 403.4 MB, free: 5.543 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.396e-05/0.2969, allocations: 37.08 kB / 403.4 MB, free: 5.504 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.434e-05/0.297, allocations: 148.5 kB / 403.6 MB, free: 5.375 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.905e-05/0.2971, allocations: 55.5 kB / 403.6 MB, free: 5.332 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.441e-05/0.2972, allocations: 79.38 kB / 403.7 MB, free: 5.285 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 6.029e-05/0.2972, allocations: 327.8 kB / 404 MB, free: 4.965 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001168/0.2973, allocations: 62.59 kB / 404.1 MB, free: 4.945 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001472/0.2975, allocations: 141.4 kB / 404.2 MB, free: 4.836 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002287/0.2977, allocations: 186.3 kB / 404.4 MB, free: 4.695 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.294e-06/0.2977, allocations: 0 / 404.4 MB, free: 4.695 MB / 318.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.000359/0.2981, allocations: 253.3 kB / 404.7 MB, free: 4.578 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.77e-05/0.2981, allocations: 6.25 kB / 404.7 MB, free: 4.578 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.286e-06/0.2981, allocations: 2.938 kB / 404.7 MB, free: 4.578 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.042e-05/0.2981, allocations: 4.562 kB / 404.7 MB, free: 4.578 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001395/0.2983, allocations: 34.64 kB / 404.7 MB, free: 4.57 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.181e-05/0.2983, allocations: 5.031 kB / 404.7 MB, free: 4.57 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001011/0.2984, allocations: 29.47 kB / 404.8 MB, free: 4.551 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.427e-05/0.2984, allocations: 19.36 kB / 404.8 MB, free: 4.543 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 30 ($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,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 (40): * Single equations (assignments): 40 * 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.0001222/0.2985, allocations: 160.3 kB / 404.9 MB, free: 4.398 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.471e-05/0.2986, allocations: 14.05 kB / 404.9 MB, free: 4.391 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003416/0.2989, allocations: 195 kB / 405.1 MB, free: 4.297 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.889e-06/0.2989, allocations: 3.469 kB / 405.1 MB, free: 4.297 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.167e-06/0.2989, allocations: 0 / 405.1 MB, free: 4.297 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.42e-06/0.2989, allocations: 0.9844 kB / 405.1 MB, free: 4.297 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005961/0.2995, allocations: 0.5058 MB / 405.6 MB, free: 3.926 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.134e-06/0.2995, allocations: 8 kB / 405.7 MB, free: 3.918 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.383e-05/0.2996, allocations: 21.53 kB / 405.7 MB, free: 3.91 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.795e-06/0.2996, allocations: 1.094 kB / 405.7 MB, free: 3.91 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.454e-05/0.2996, allocations: 2.938 kB / 405.7 MB, free: 3.91 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.957e-06/0.2996, allocations: 6.344 kB / 405.7 MB, free: 3.906 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.142e-06/0.2996, allocations: 0 / 405.7 MB, free: 3.906 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002688/0.2999, allocations: 275.5 kB / 406 MB, free: 3.723 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.656e-05/0.2999, allocations: 16.72 kB / 406 MB, free: 3.711 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.569e-05/0.2999, allocations: 7.531 kB / 406 MB, free: 3.707 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.924e-05/0.3, allocations: 8.609 kB / 406 MB, free: 3.703 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.067e-05/0.3001, allocations: 25.06 kB / 406 MB, free: 3.695 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.407e-05/0.3001, allocations: 14.41 kB / 406 MB, free: 3.688 MB / 318.1 MB Notification: Performance of sorting global known variables: time 4.124e-05/0.3001, allocations: 103.1 kB / 406.1 MB, free: 3.602 MB / 318.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3001, allocations: 0 / 406.1 MB, free: 3.602 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002979/0.3004, allocations: 56.53 kB / 406.2 MB, free: 3.582 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 (step.localActive,transition1.enableFire,step.active,initialStep.active,$cse1,$cse2,$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: 2 (initialStep.newActive,step.newActive) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (25): * Single equations (assignments): 21 * 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.0001228/0.3006, allocations: 101 kB / 406.3 MB, free: 3.492 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0003157/0.3009, allocations: 169.7 kB / 406.4 MB, free: 3.441 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 1.834e-06/0.3009, allocations: 0.5625 kB / 406.4 MB, free: 3.441 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001188/0.301, allocations: 73.44 kB / 406.5 MB, free: 3.418 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002772/0.3013, allocations: 19.45 kB / 406.5 MB, free: 3.41 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005743/0.3018, allocations: 365.6 kB / 406.9 MB, free: 3.148 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001312/0.302, allocations: 120.5 kB / 407 MB, free: 3.07 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.023e-05/0.302, allocations: 27.91 kB / 407 MB, free: 3.059 MB / 318.1 MB Notification: Performance of SimCode: time 3.3e-07/0.302, allocations: 0 / 407 MB, free: 3.059 MB / 318.1 MB Notification: Performance of Templates: time 0.005471/0.3075, allocations: 2.455 MB / 409.5 MB, free: 2.461 MB / 318.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; mkfifo Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe >> ../files/Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3.sim & ./Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/StateGraph/Examples/FirstExample_Variant3/FirstExample_Variant3.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3.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: 7.212540392763913]