Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2.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 4.0.0+maint.om/package.mo", uses=false) 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_Variant2,fileNamePrefix="Modelica_4_0_0_Modelica_StateGraph_Examples_FirstExample_Variant2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.StateGraph.Examples.FirstExample_Variant2,fileNamePrefix="Modelica_4_0_0_Modelica_StateGraph_Examples_FirstExample_Variant2",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.002258/0.002258, allocations: 108.5 kB / 17.06 MB, free: 6.016 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.002555/0.002555, allocations: 199.9 kB / 18 MB, free: 5.094 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.674/2.674, allocations: 222.9 MB / 241.7 MB, free: 15.21 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001534/0.001534, allocations: 43.92 kB / 350.8 MB, free: 3.789 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6147/0.6162, allocations: 49.44 MB / 400.2 MB, free: 8.43 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant2): time 0.007163/0.6235, allocations: 1.654 MB / 401.9 MB, free: 7.125 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.00153/0.6251, allocations: 301.2 kB / 402.2 MB, free: 6.887 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002861/0.6254, allocations: 4 kB / 402.2 MB, free: 6.883 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002968/0.6257, allocations: 23.69 kB / 402.2 MB, free: 6.859 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001727/0.626, allocations: 19.8 kB / 402.2 MB, free: 6.84 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008303/0.6268, allocations: 119.8 kB / 402.3 MB, free: 6.723 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006429/0.6275, allocations: 275.5 kB / 402.6 MB, free: 6.453 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006308/0.6281, allocations: 186.9 kB / 402.8 MB, free: 6.266 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002243/0.6284, allocations: 95.7 kB / 402.9 MB, free: 6.172 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002743/0.6287, allocations: 99.53 kB / 403 MB, free: 6.074 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 8.004e-05/0.6288, allocations: 24 kB / 403 MB, free: 6.051 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001401/0.6289, allocations: 31.98 kB / 403 MB, free: 6.02 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001181/0.6291, allocations: 63.83 kB / 403.1 MB, free: 5.957 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002356/0.6293, allocations: 91.53 kB / 403.2 MB, free: 5.867 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000636/0.63, allocations: 268.8 kB / 403.4 MB, free: 5.605 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.013e-05/0.63, allocations: 0 / 403.4 MB, free: 5.605 MB / 318.1 MB Notification: Performance of FrontEnd: time 3.757e-06/0.63, allocations: 0 / 403.4 MB, free: 5.605 MB / 318.1 MB Notification: Performance of Transformations before backend: time 2.868e-05/0.6301, allocations: 0 / 403.4 MB, free: 5.605 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.001451/0.6316, allocations: 0.4947 MB / 403.9 MB, free: 5.059 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.881e-05/0.6316, allocations: 15.89 kB / 403.9 MB, free: 5.043 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001204/0.6318, allocations: 58.72 kB / 404 MB, free: 4.977 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001127/0.6319, allocations: 24.69 kB / 404 MB, free: 4.953 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005571/0.6325, allocations: 236 kB / 404.3 MB, free: 4.684 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.179e-05/0.6326, allocations: 20.94 kB / 404.3 MB, free: 4.664 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.531e-05/0.6326, allocations: 28.38 kB / 404.3 MB, free: 4.637 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007845/0.6334, allocations: 278.5 kB / 404.6 MB, free: 4.344 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.967e-05/0.6335, allocations: 3.938 kB / 404.6 MB, free: 4.34 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.35e-05/0.6335, allocations: 12 kB / 404.6 MB, free: 4.328 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.284e-05/0.6336, allocations: 4 kB / 404.6 MB, free: 4.324 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006664/0.6342, allocations: 165.6 kB / 404.8 MB, free: 4.164 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001945/0.6362, allocations: 0.9711 MB / 405.7 MB, free: 3.125 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005028/0.6367, allocations: 182.8 kB / 405.9 MB, free: 2.93 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002325/0.637, allocations: 81.69 kB / 406 MB, free: 2.844 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.698e-05/0.637, allocations: 4 kB / 406 MB, free: 2.84 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003871/0.6374, allocations: 140.7 kB / 406.1 MB, free: 2.688 MB / 318.1 MB Notification: Performance of pre-optimization done (n=24): time 3.396e-06/0.6375, allocations: 0 / 406.1 MB, free: 2.688 MB / 318.1 MB Notification: Performance of matching and sorting (n=24): time 0.0008477/0.6383, allocations: 229.2 kB / 406.3 MB, free: 2.457 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.336e-05/0.6384, allocations: 81.11 kB / 406.4 MB, free: 2.359 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002189/0.6387, allocations: 152.9 kB / 406.6 MB, free: 2.203 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 6.248e-05/0.6387, allocations: 45.69 kB / 406.6 MB, free: 2.152 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001748/0.6389, allocations: 136.5 kB / 406.8 MB, free: 2.016 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001052/0.6391, allocations: 59.2 kB / 406.8 MB, free: 1.957 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002118/0.6393, allocations: 81.67 kB / 406.9 MB, free: 1.871 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001801/0.6395, allocations: 330.9 kB / 407.2 MB, free: 1.539 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002285/0.6397, allocations: 67.97 kB / 407.3 MB, free: 1.473 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003365/0.6401, allocations: 144.2 kB / 407.4 MB, free: 1.301 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004491/0.6406, allocations: 196.8 kB / 407.6 MB, free: 1.078 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.721e-06/0.6406, allocations: 4 kB / 407.6 MB, free: 1.074 MB / 318.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0006697/0.6413, allocations: 253.2 kB / 407.9 MB, free: 0.8203 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.241e-05/0.6413, allocations: 6.656 kB / 407.9 MB, free: 0.8164 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.394e-05/0.6413, allocations: 4 kB / 407.9 MB, free: 0.8125 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.014e-05/0.6414, allocations: 4 kB / 407.9 MB, free: 0.8086 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002315/0.6416, allocations: 31.91 kB / 407.9 MB, free: 0.7773 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.721e-05/0.6417, allocations: 8.219 kB / 407.9 MB, free: 0.7695 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001914/0.6419, allocations: 27.75 kB / 407.9 MB, free: 0.7422 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.563e-05/0.6419, allocations: 19.94 kB / 408 MB, free: 0.7227 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: 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.0002533/0.6422, allocations: 161.6 kB / 408.1 MB, free: 0.5547 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.892e-05/0.6422, allocations: 11.91 kB / 408.1 MB, free: 0.543 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005226/0.6428, allocations: 202.3 kB / 408.3 MB, free: 348 kB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.017e-06/0.6428, allocations: 7.922 kB / 408.3 MB, free: 340 kB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.162e-05/0.6428, allocations: 4 kB / 408.3 MB, free: 336 kB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.166e-06/0.6428, allocations: 4 kB / 408.3 MB, free: 332 kB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001133/0.644, allocations: 0.5908 MB / 408.9 MB, free: 15.67 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.618e-06/0.644, allocations: 0 / 408.9 MB, free: 15.67 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001067/0.6441, allocations: 15.98 kB / 409 MB, free: 15.66 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.089e-05/0.6441, allocations: 3.938 kB / 409 MB, free: 15.65 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.524e-05/0.6442, allocations: 11.94 kB / 409 MB, free: 15.64 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.268e-06/0.6442, allocations: 0 / 409 MB, free: 15.64 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.144e-06/0.6442, allocations: 0 / 409 MB, free: 15.64 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004903/0.6447, allocations: 288 kB / 409.3 MB, free: 15.34 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.847e-05/0.6448, allocations: 96.86 kB / 409.3 MB, free: 15.23 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.643e-05/0.6449, allocations: 11.92 kB / 409.4 MB, free: 15.21 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001319/0.645, allocations: 8 kB / 409.4 MB, free: 15.21 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001225/0.6451, allocations: 19.97 kB / 409.4 MB, free: 15.19 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.449e-05/0.6452, allocations: 8 kB / 409.4 MB, free: 15.18 MB / 334.1 MB Notification: Performance of sorting global known variables: time 9.053e-05/0.6453, allocations: 99.27 kB / 409.5 MB, free: 15.08 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.31e-07/0.6453, allocations: 4 kB / 409.5 MB, free: 15.08 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0005359/0.6458, allocations: 51.84 kB / 409.5 MB, free: 15.03 MB / 334.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,step.active,transition1.enableFire,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.001062/0.6469, allocations: 0.8268 MB / 410.4 MB, free: 14.17 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0005965/0.6475, allocations: 195.9 kB / 410.6 MB, free: 13.98 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.477e-06/0.6475, allocations: 0 / 410.6 MB, free: 13.98 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002583/0.6478, allocations: 83.91 kB / 410.6 MB, free: 13.89 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005494/0.6484, allocations: 19.98 kB / 410.7 MB, free: 13.88 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003936/0.6523, allocations: 2.082 MB / 412.7 MB, free: 11.65 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005742/0.6529, allocations: 0.7402 MB / 413.5 MB, free: 10.88 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001441/0.6531, allocations: 33.88 kB / 413.5 MB, free: 10.84 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001875/0.6533, allocations: 63.42 kB / 413.6 MB, free: 10.78 MB / 334.1 MB Notification: Performance of SimCode: time 4.81e-07/0.6533, allocations: 3.938 kB / 413.6 MB, free: 10.78 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06773/0.721, allocations: 3.814 MB / 417.4 MB, free: 7.062 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 16.18/16.9, allocations: 8.641 kB / 417.4 MB, free: 7.055 MB / 334.1 MB (rm -f Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; mkfifo Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe >> ../files/Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_StateGraph_Examples_FirstExample_Variant2_fmu --startTime=0 --stopTime=5.5 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_StateGraph_Examples_FirstExample_Variant2.fmu > Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/StateGraph/Examples/FirstExample_Variant2/FirstExample_Variant2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches