Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001769/0.001769, allocations: 123.9 kB / 17.79 MB, free: 5.266 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001905/0.001905, allocations: 185.2 kB / 20.73 MB, free: 2.332 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.37/1.37, allocations: 225.6 MB / 249.1 MB, free: 3.613 MB / 190.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.StateGraph.Examples.FirstExample_Variant3,fileNamePrefix="Modelica_4_0_0_Modelica_StateGraph_Examples_FirstExample_Variant3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.StateGraph.Examples.FirstExample_Variant3,fileNamePrefix="Modelica_4_0_0_Modelica_StateGraph_Examples_FirstExample_Variant3",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001495/0.001495, allocations: 55.91 kB / 365.6 MB, free: 0.875 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09256/0.09405, allocations: 52.14 MB / 417.8 MB, free: 12.64 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant3): time 0.002905/0.09696, allocations: 1.711 MB / 419.5 MB, free: 10.91 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006449/0.0976, allocations: 283.2 kB / 419.7 MB, free: 10.64 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.455e-05/0.09769, allocations: 11.94 kB / 419.8 MB, free: 10.62 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001288/0.09782, allocations: 27.73 kB / 419.8 MB, free: 10.6 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 5.999e-05/0.09788, allocations: 15.75 kB / 419.8 MB, free: 10.58 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003569/0.09823, allocations: 115.8 kB / 419.9 MB, free: 10.47 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003233/0.09856, allocations: 275.4 kB / 420.2 MB, free: 10.2 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002631/0.09882, allocations: 145.6 kB / 420.3 MB, free: 10.06 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.872e-05/0.09892, allocations: 95.69 kB / 420.4 MB, free: 9.965 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001438/0.09906, allocations: 107.5 kB / 420.5 MB, free: 9.859 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.712e-05/0.0991, allocations: 24 kB / 420.5 MB, free: 9.836 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.789e-05/0.09917, allocations: 27.98 kB / 420.6 MB, free: 9.809 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.391e-05/0.09923, allocations: 55.84 kB / 420.6 MB, free: 9.754 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001117/0.09934, allocations: 107.4 kB / 420.7 MB, free: 9.648 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003077/0.09965, allocations: 250.9 kB / 421 MB, free: 9.402 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.447e-06/0.09965, allocations: 4 kB / 421 MB, free: 9.398 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.363e-06/0.09966, allocations: 0 / 421 MB, free: 9.398 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.012e-06/0.09966, allocations: 4 kB / 421 MB, free: 9.395 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: 60 * Number of variables: 60 Notification: Performance of Generate backend data structure: time 0.0006751/0.1003, allocations: 0.4891 MB / 421.5 MB, free: 8.852 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.528e-05/0.1004, allocations: 12.03 kB / 421.5 MB, free: 8.84 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.444e-05/0.1004, allocations: 62.73 kB / 421.5 MB, free: 8.77 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.264e-05/0.1005, allocations: 28.78 kB / 421.6 MB, free: 8.742 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003071/0.1008, allocations: 224.1 kB / 421.8 MB, free: 8.484 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.057e-05/0.1009, allocations: 28.92 kB / 421.8 MB, free: 8.457 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.837e-05/0.1009, allocations: 32.31 kB / 421.9 MB, free: 8.426 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004465/0.1013, allocations: 274.5 kB / 422.1 MB, free: 8.137 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.375e-05/0.1014, allocations: 3.938 kB / 422.1 MB, free: 8.133 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.473e-05/0.1014, allocations: 11.98 kB / 422.1 MB, free: 8.121 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.043e-05/0.1014, allocations: 7.984 kB / 422.1 MB, free: 8.113 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003037/0.1017, allocations: 165.5 kB / 422.3 MB, free: 7.953 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001163/0.1029, allocations: 0.9713 MB / 423.3 MB, free: 6.918 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002806/0.1031, allocations: 163.7 kB / 423.4 MB, free: 6.742 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001169/0.1033, allocations: 73.78 kB / 423.5 MB, free: 6.664 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.463e-05/0.1033, allocations: 0 / 423.5 MB, free: 6.664 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002178/0.1035, allocations: 149 kB / 423.7 MB, free: 6.5 MB / 350.1 MB Notification: Performance of pre-optimization done (n=24): time 1.252e-06/0.1035, allocations: 0 / 423.7 MB, free: 6.5 MB / 350.1 MB Notification: Performance of matching and sorting (n=24): time 0.0004244/0.1039, allocations: 225.6 kB / 423.9 MB, free: 6.277 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.993e-05/0.104, allocations: 81.11 kB / 424 MB, free: 6.18 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001248/0.1041, allocations: 153.7 kB / 424.1 MB, free: 6.02 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.557e-05/0.1041, allocations: 37.7 kB / 424.1 MB, free: 5.977 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.563e-05/0.1042, allocations: 136.8 kB / 424.3 MB, free: 5.84 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.175e-05/0.1043, allocations: 71.45 kB / 424.3 MB, free: 5.77 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001027/0.1044, allocations: 81.81 kB / 424.4 MB, free: 5.684 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001365/0.1045, allocations: 330.8 kB / 424.7 MB, free: 5.352 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000116/0.1046, allocations: 59.97 kB / 424.8 MB, free: 5.293 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001741/0.1048, allocations: 140.3 kB / 424.9 MB, free: 5.125 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002675/0.1051, allocations: 212.8 kB / 425.2 MB, free: 4.887 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.515e-06/0.1051, allocations: 0 / 425.2 MB, free: 4.887 MB / 350.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0004107/0.1055, allocations: 249.3 kB / 425.4 MB, free: 4.637 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.372e-05/0.1055, allocations: 4 kB / 425.4 MB, free: 4.633 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.801e-06/0.1055, allocations: 4 kB / 425.4 MB, free: 4.629 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.599e-05/0.1055, allocations: 4.281 kB / 425.4 MB, free: 4.625 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001351/0.1057, allocations: 39.92 kB / 425.4 MB, free: 4.586 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.253e-05/0.1057, allocations: 7.938 kB / 425.5 MB, free: 4.578 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.727e-05/0.1058, allocations: 27.83 kB / 425.5 MB, free: 4.551 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.979e-05/0.1058, allocations: 12 kB / 425.5 MB, free: 4.539 MB / 350.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: 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.0001453/0.106, allocations: 162.3 kB / 425.7 MB, free: 4.371 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.718e-05/0.106, allocations: 15.89 kB / 425.7 MB, free: 4.355 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000336/0.1063, allocations: 198.3 kB / 425.9 MB, free: 4.156 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.021e-06/0.1063, allocations: 11.94 kB / 425.9 MB, free: 4.145 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.667e-06/0.1063, allocations: 0 / 425.9 MB, free: 4.145 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.636e-06/0.1063, allocations: 3.938 kB / 425.9 MB, free: 4.141 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007158/0.107, allocations: 0.587 MB / 426.5 MB, free: 3.488 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.483e-06/0.1071, allocations: 0 / 426.5 MB, free: 3.488 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.049e-05/0.1071, allocations: 19.92 kB / 426.5 MB, free: 3.469 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.7e-06/0.1071, allocations: 3.938 kB / 426.5 MB, free: 3.465 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.509e-05/0.1071, allocations: 8 kB / 426.5 MB, free: 3.457 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.743e-06/0.1071, allocations: 0 / 426.5 MB, free: 3.457 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.745e-06/0.1071, allocations: 7.984 kB / 426.5 MB, free: 3.449 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003281/0.1075, allocations: 291.9 kB / 426.8 MB, free: 3.145 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.346e-05/0.1075, allocations: 89 kB / 426.9 MB, free: 3.039 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.834e-05/0.1076, allocations: 11.94 kB / 426.9 MB, free: 3.027 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.71e-05/0.1076, allocations: 4 kB / 426.9 MB, free: 3.023 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.252e-05/0.1077, allocations: 19.97 kB / 426.9 MB, free: 3.004 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.812e-05/0.1077, allocations: 19.98 kB / 426.9 MB, free: 2.984 MB / 350.1 MB Notification: Performance of sorting global known variables: time 6.31e-05/0.1078, allocations: 91.27 kB / 427 MB, free: 2.895 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.1078, allocations: 0 / 427 MB, free: 2.895 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002883/0.1081, allocations: 55.84 kB / 427.1 MB, free: 2.84 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 20 (transition2.t_start,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: 3 (initialStep.newActive,step.newActive,transition2.t_start) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (26): * Single equations (assignments): 21 * 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 0.0006641/0.1087, allocations: 0.8308 MB / 427.9 MB, free: 1.98 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003419/0.1091, allocations: 183.9 kB / 428.1 MB, free: 1.801 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.964e-06/0.1091, allocations: 0 / 428.1 MB, free: 1.801 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001303/0.1092, allocations: 71.91 kB / 428.2 MB, free: 1.73 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002767/0.1095, allocations: 22.19 kB / 428.2 MB, free: 1.711 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002258/0.1117, allocations: 2.078 MB / 430.3 MB, free: 15.49 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003591/0.1121, allocations: 0.7363 MB / 431 MB, free: 14.72 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 8.804e-05/0.1122, allocations: 29.94 kB / 431 MB, free: 14.69 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001022/0.1123, allocations: 59.42 kB / 431.1 MB, free: 14.63 MB / 366.1 MB Notification: Performance of SimCode: time 2.9e-07/0.1123, allocations: 0 / 431.1 MB, free: 14.63 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05181/0.1641, allocations: 3.723 MB / 434.8 MB, free: 10.99 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.967/8.131, allocations: 15.28 kB / 434.8 MB, free: 10.98 MB / 366.1 MB " [Timeout remaining time 652] (rm -f Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; mkfifo Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe >> ../files/Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_StateGraph_Examples_FirstExample_Variant3_fmu --startTime=0 --stopTime=5.5 --stepSize=0.00109737 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_StateGraph_Examples_FirstExample_Variant3.fmu > Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/StateGraph/Examples/FirstExample_Variant3/FirstExample_Variant3.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_4.0.0_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: 10.770277285017073]