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.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) 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.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_3_2_3_Modelica_StateGraph_Examples_FirstExample_Variant3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.StateGraph.Examples.FirstExample_Variant3,fileNamePrefix="Modelica_3_2_3_Modelica_StateGraph_Examples_FirstExample_Variant3",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001396/0.001396, allocations: 114.5 kB / 17.73 MB, free: 5.336 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001201/0.001201, allocations: 187 kB / 18.67 MB, free: 4.402 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.46/1.46, allocations: 205.1 MB / 224.5 MB, free: 12.23 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.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.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001625/0.001625, allocations: 55.92 kB / 328 MB, free: 3.824 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09618/0.09781, allocations: 46.62 MB / 374.6 MB, free: 5.098 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant3): time 0.003011/0.1009, allocations: 1.687 MB / 376.3 MB, free: 3.398 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.000665/0.1016, allocations: 260 kB / 376.6 MB, free: 3.145 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.022e-05/0.1017, allocations: 8 kB / 376.6 MB, free: 3.137 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001422/0.1018, allocations: 27.69 kB / 376.6 MB, free: 3.109 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 6.285e-05/0.1019, allocations: 19.78 kB / 376.6 MB, free: 3.09 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004159/0.1023, allocations: 111.8 kB / 376.7 MB, free: 2.98 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003305/0.1026, allocations: 263.5 kB / 377 MB, free: 2.723 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003258/0.103, allocations: 185.5 kB / 377.2 MB, free: 2.539 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001062/0.1031, allocations: 87.66 kB / 377.3 MB, free: 2.453 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000145/0.1032, allocations: 99.53 kB / 377.4 MB, free: 2.355 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.073e-05/0.1033, allocations: 24 kB / 377.4 MB, free: 2.332 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.744e-05/0.1034, allocations: 43.98 kB / 377.4 MB, free: 2.289 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 7.141e-05/0.1035, allocations: 55.83 kB / 377.5 MB, free: 2.234 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001125/0.1036, allocations: 99.47 kB / 377.6 MB, free: 2.137 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003388/0.1039, allocations: 250.9 kB / 377.8 MB, free: 1.891 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.658e-06/0.1039, allocations: 0 / 377.8 MB, free: 1.891 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.303e-06/0.104, allocations: 0 / 377.8 MB, free: 1.891 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.282e-06/0.104, allocations: 0 / 377.8 MB, free: 1.891 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.0007115/0.1047, allocations: 493.9 kB / 378.3 MB, free: 1.359 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.195e-05/0.1047, allocations: 8.031 kB / 378.3 MB, free: 1.352 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.618e-05/0.1048, allocations: 74.59 kB / 378.4 MB, free: 1.27 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.71e-05/0.1049, allocations: 24.8 kB / 378.4 MB, free: 1.246 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003423/0.1052, allocations: 232.1 kB / 378.6 MB, free: 0.9805 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.774e-05/0.1053, allocations: 20.94 kB / 378.6 MB, free: 0.9609 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.073e-05/0.1053, allocations: 28.38 kB / 378.7 MB, free: 0.9336 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004515/0.1058, allocations: 270.5 kB / 378.9 MB, free: 0.6523 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.596e-05/0.1058, allocations: 7.938 kB / 378.9 MB, free: 0.6445 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.819e-05/0.1058, allocations: 15.98 kB / 379 MB, free: 0.6289 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.767e-06/0.1058, allocations: 4 kB / 379 MB, free: 0.625 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003169/0.1062, allocations: 165.6 kB / 379.1 MB, free: 472 kB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1869/0.293, allocations: 0.959 MB / 380.1 MB, free: 12.27 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002992/0.2934, allocations: 154.2 kB / 380.2 MB, free: 12.24 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001183/0.2935, allocations: 78.66 kB / 380.3 MB, free: 12.23 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.708e-05/0.2935, allocations: 1.375 kB / 380.3 MB, free: 12.23 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002039/0.2938, allocations: 121.8 kB / 380.4 MB, free: 12.18 MB / 318.1 MB Notification: Performance of pre-optimization done (n=23): time 2.595e-06/0.2938, allocations: 0 / 380.4 MB, free: 12.18 MB / 318.1 MB Notification: Performance of matching and sorting (n=23): time 0.0004187/0.2942, allocations: 212 kB / 380.6 MB, free: 12.14 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.039e-05/0.2942, allocations: 55.98 kB / 380.7 MB, free: 12.08 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001241/0.2944, allocations: 158.8 kB / 380.9 MB, free: 11.98 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.277e-05/0.2944, allocations: 38.58 kB / 380.9 MB, free: 11.95 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.655e-05/0.2945, allocations: 143.4 kB / 381 MB, free: 11.85 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.715e-05/0.2945, allocations: 67.19 kB / 381.1 MB, free: 11.82 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.918e-05/0.2946, allocations: 76.84 kB / 381.2 MB, free: 11.8 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 5.771e-05/0.2947, allocations: 329 kB / 381.5 MB, free: 11.48 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001134/0.2948, allocations: 65.75 kB / 381.6 MB, free: 11.48 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001344/0.295, allocations: 144.4 kB / 381.7 MB, free: 11.4 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002061/0.2952, allocations: 186.9 kB / 381.9 MB, free: 11.32 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.475e-06/0.2952, allocations: 1.375 kB / 381.9 MB, free: 11.32 MB / 318.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0003427/0.2955, allocations: 252.7 kB / 382.1 MB, free: 11.28 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.944e-05/0.2956, allocations: 6.203 kB / 382.1 MB, free: 11.28 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.331e-06/0.2956, allocations: 2.75 kB / 382.1 MB, free: 11.28 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.884e-05/0.2956, allocations: 4.125 kB / 382.1 MB, free: 11.28 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001433/0.2957, allocations: 34.52 kB / 382.2 MB, free: 11.27 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.242e-05/0.2958, allocations: 12.56 kB / 382.2 MB, free: 11.27 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001065/0.2959, allocations: 31.56 kB / 382.2 MB, free: 11.26 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.909e-05/0.2959, allocations: 16.38 kB / 382.2 MB, free: 11.26 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.0001312/0.2961, allocations: 153 kB / 382.4 MB, free: 11.13 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.624e-05/0.2961, allocations: 16.17 kB / 382.4 MB, free: 11.12 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003645/0.2965, allocations: 189.6 kB / 382.6 MB, free: 11.09 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.3e-06/0.2965, allocations: 6.688 kB / 382.6 MB, free: 11.08 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.771e-06/0.2965, allocations: 6.719 kB / 382.6 MB, free: 11.08 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.593e-06/0.2965, allocations: 2.594 kB / 382.6 MB, free: 11.08 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007784/0.2973, allocations: 0.5838 MB / 383.2 MB, free: 10.69 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.134e-06/0.2973, allocations: 0.5 kB / 383.2 MB, free: 10.69 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.855e-05/0.2974, allocations: 17.33 kB / 383.2 MB, free: 10.69 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.158e-06/0.2974, allocations: 1.531 kB / 383.2 MB, free: 10.69 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.759e-05/0.2974, allocations: 6.359 kB / 383.2 MB, free: 10.69 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.637e-06/0.2974, allocations: 2.703 kB / 383.2 MB, free: 10.69 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.463e-06/0.2974, allocations: 0.5312 kB / 383.2 MB, free: 10.69 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003167/0.2978, allocations: 280 kB / 383.5 MB, free: 10.5 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.437e-05/0.2978, allocations: 94.05 kB / 383.6 MB, free: 10.39 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.668e-05/0.2978, allocations: 10.33 kB / 383.6 MB, free: 10.39 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.966e-05/0.2979, allocations: 4.734 kB / 383.6 MB, free: 10.39 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.185e-05/0.298, allocations: 20.78 kB / 383.6 MB, free: 10.39 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.22e-05/0.2981, allocations: 11.38 kB / 383.6 MB, free: 10.38 MB / 318.1 MB Notification: Performance of sorting global known variables: time 5.595e-05/0.2981, allocations: 95.94 kB / 383.7 MB, free: 10.3 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.282e-06/0.2981, allocations: 1.25 kB / 383.7 MB, free: 10.3 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.000309/0.2984, allocations: 53.88 kB / 383.8 MB, free: 10.29 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.0005204/0.299, allocations: 0.827 MB / 384.6 MB, free: 9.566 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0003366/0.2993, allocations: 185.2 kB / 384.8 MB, free: 9.508 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 1.974e-06/0.2993, allocations: 0 / 384.8 MB, free: 9.508 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001361/0.2995, allocations: 86.16 kB / 384.9 MB, free: 9.48 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000285/0.2998, allocations: 22.11 kB / 384.9 MB, free: 9.469 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002004/0.3018, allocations: 2.048 MB / 386.9 MB, free: 7.824 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002086/0.302, allocations: 0.7354 MB / 387.7 MB, free: 7.125 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 8.623e-05/0.3021, allocations: 27.23 kB / 387.7 MB, free: 7.121 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001057/0.3022, allocations: 67.3 kB / 387.8 MB, free: 7.074 MB / 318.1 MB Notification: Performance of SimCode: time 2.61e-07/0.3022, allocations: 1.219 kB / 387.8 MB, free: 7.074 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02691/0.3291, allocations: 3.671 MB / 391.4 MB, free: 6.402 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.224/8.553, allocations: 16.88 kB / 391.4 MB, free: 6.387 MB / 318.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_StateGraph_Examples_FirstExample_Variant3_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_StateGraph_Examples_FirstExample_Variant3.fmu > Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe 2>&1) 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) Reference file matches