Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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 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_Variant2,fileNamePrefix="Modelica_3_2_3_Modelica_StateGraph_Examples_FirstExample_Variant2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.StateGraph.Examples.FirstExample_Variant2,fileNamePrefix="Modelica_3_2_3_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.001154/0.001154, allocations: 110.5 kB / 17.73 MB, free: 5.352 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.001234/0.001234, allocations: 187.1 kB / 18.66 MB, free: 4.426 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.507/1.507, allocations: 205.1 MB / 224.5 MB, free: 12.25 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.001245/0.001245, allocations: 51.92 kB / 328 MB, free: 3.844 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1102/0.1115, allocations: 46.62 MB / 374.6 MB, free: 5.113 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant2): time 0.003752/0.1153, allocations: 1.663 MB / 376.3 MB, free: 3.438 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008231/0.1161, allocations: 256.1 kB / 376.5 MB, free: 3.188 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001379/0.1163, allocations: 7.938 kB / 376.5 MB, free: 3.18 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001538/0.1165, allocations: 31.67 kB / 376.6 MB, free: 3.148 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 7.5e-05/0.1166, allocations: 15.8 kB / 376.6 MB, free: 3.133 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004971/0.1171, allocations: 115.8 kB / 376.7 MB, free: 3.02 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004926/0.1176, allocations: 267.5 kB / 377 MB, free: 2.758 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004127/0.118, allocations: 202.8 kB / 377.2 MB, free: 2.555 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001438/0.1182, allocations: 83.72 kB / 377.2 MB, free: 2.473 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001577/0.1183, allocations: 103.6 kB / 377.3 MB, free: 2.371 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.558e-05/0.1184, allocations: 20 kB / 377.4 MB, free: 2.352 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.788e-05/0.1185, allocations: 31.94 kB / 377.4 MB, free: 2.32 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 8.142e-05/0.1186, allocations: 59.83 kB / 377.5 MB, free: 2.262 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001256/0.1187, allocations: 107.5 kB / 377.6 MB, free: 2.156 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003852/0.1191, allocations: 254.9 kB / 377.8 MB, free: 1.906 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.278e-06/0.1191, allocations: 0 / 377.8 MB, free: 1.906 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.733e-06/0.1191, allocations: 0 / 377.8 MB, free: 1.906 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.037e-05/0.1191, allocations: 0 / 377.8 MB, free: 1.906 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.0007972/0.1199, allocations: 0.4898 MB / 378.3 MB, free: 1.367 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.296e-05/0.12, allocations: 8.031 kB / 378.3 MB, free: 1.359 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.213e-05/0.1201, allocations: 62.72 kB / 378.4 MB, free: 1.289 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.465e-05/0.1202, allocations: 24.8 kB / 378.4 MB, free: 1.266 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003293/0.1205, allocations: 244 kB / 378.6 MB, free: 0.9883 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.591e-05/0.1206, allocations: 20.94 kB / 378.7 MB, free: 0.9688 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.204e-05/0.1206, allocations: 28.31 kB / 378.7 MB, free: 0.9414 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005131/0.1212, allocations: 274.5 kB / 378.9 MB, free: 0.6562 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.691e-05/0.1212, allocations: 11.94 kB / 379 MB, free: 0.6445 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.862e-05/0.1212, allocations: 8 kB / 379 MB, free: 0.6367 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.798e-06/0.1212, allocations: 8 kB / 379 MB, free: 0.6289 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003224/0.1216, allocations: 165.6 kB / 379.1 MB, free: 476 kB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1968/0.3184, allocations: 0.9541 MB / 380.1 MB, free: 12.22 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003342/0.3188, allocations: 158.2 kB / 380.2 MB, free: 12.2 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001319/0.3189, allocations: 73.2 kB / 380.3 MB, free: 12.19 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.322e-05/0.3189, allocations: 4.906 kB / 380.3 MB, free: 12.19 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002645/0.3192, allocations: 122.1 kB / 380.4 MB, free: 12.14 MB / 318.1 MB Notification: Performance of pre-optimization done (n=23): time 3.056e-06/0.3192, allocations: 0 / 380.4 MB, free: 12.14 MB / 318.1 MB Notification: Performance of matching and sorting (n=23): time 0.0005374/0.3198, allocations: 214.4 kB / 380.6 MB, free: 12.1 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.619e-05/0.3198, allocations: 55.53 kB / 380.7 MB, free: 12.04 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001584/0.32, allocations: 166.6 kB / 380.9 MB, free: 11.94 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3.106e-05/0.3201, allocations: 37.73 kB / 380.9 MB, free: 11.91 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001002/0.3202, allocations: 142.8 kB / 381 MB, free: 11.8 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.096e-05/0.3202, allocations: 64.95 kB / 381.1 MB, free: 11.77 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000135/0.3204, allocations: 80.12 kB / 381.2 MB, free: 11.75 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 8.576e-05/0.3205, allocations: 326.1 kB / 381.5 MB, free: 11.44 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000128/0.3206, allocations: 62.97 kB / 381.6 MB, free: 11.44 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001679/0.3208, allocations: 141.2 kB / 381.7 MB, free: 11.36 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000236/0.321, allocations: 190 kB / 381.9 MB, free: 11.27 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.737e-06/0.321, allocations: 0 / 381.9 MB, free: 11.27 MB / 318.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.000368/0.3214, allocations: 252 kB / 382.1 MB, free: 11.23 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.929e-05/0.3214, allocations: 6.25 kB / 382.1 MB, free: 11.23 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.105e-06/0.3214, allocations: 2.75 kB / 382.1 MB, free: 11.23 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.223e-05/0.3215, allocations: 4.125 kB / 382.1 MB, free: 11.23 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001581/0.3216, allocations: 33.88 kB / 382.2 MB, free: 11.23 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.429e-05/0.3217, allocations: 14.45 kB / 382.2 MB, free: 11.22 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001179/0.3218, allocations: 30.5 kB / 382.2 MB, free: 11.21 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.94e-05/0.3218, allocations: 12.36 kB / 382.2 MB, free: 11.21 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.0001401/0.322, allocations: 158.6 kB / 382.4 MB, free: 11.09 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.096e-05/0.322, allocations: 17.23 kB / 382.4 MB, free: 11.08 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003814/0.3224, allocations: 188.9 kB / 382.6 MB, free: 11.04 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.522e-06/0.3224, allocations: 3.734 kB / 382.6 MB, free: 11.04 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.408e-06/0.3224, allocations: 5.266 kB / 382.6 MB, free: 11.04 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.532e-06/0.3224, allocations: 3 kB / 382.6 MB, free: 11.04 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008014/0.3232, allocations: 0.5878 MB / 383.2 MB, free: 10.66 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.208e-06/0.3233, allocations: 1.328 kB / 383.2 MB, free: 10.66 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.433e-05/0.3234, allocations: 18.03 kB / 383.2 MB, free: 10.66 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.302e-06/0.3234, allocations: 1.031 kB / 383.2 MB, free: 10.66 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.771e-05/0.3234, allocations: 10.75 kB / 383.2 MB, free: 10.65 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.236e-06/0.3234, allocations: 1.281 kB / 383.2 MB, free: 10.65 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.373e-06/0.3234, allocations: 0.6562 kB / 383.2 MB, free: 10.65 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003178/0.3237, allocations: 286.4 kB / 383.5 MB, free: 10.46 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.232e-05/0.3238, allocations: 88.95 kB / 383.6 MB, free: 10.36 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.139e-05/0.3238, allocations: 8.766 kB / 383.6 MB, free: 10.36 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.965e-05/0.3239, allocations: 8.859 kB / 383.6 MB, free: 10.35 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.702e-05/0.324, allocations: 16.25 kB / 383.6 MB, free: 10.35 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.892e-05/0.324, allocations: 10.48 kB / 383.6 MB, free: 10.35 MB / 318.1 MB Notification: Performance of sorting global known variables: time 5.096e-05/0.3241, allocations: 100.2 kB / 383.7 MB, free: 10.27 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3241, allocations: 1.219 kB / 383.7 MB, free: 10.27 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003349/0.3244, allocations: 54.52 kB / 383.8 MB, free: 10.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 (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: 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.0005667/0.325, allocations: 0.8217 MB / 384.6 MB, free: 9.531 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0003414/0.3254, allocations: 182.1 kB / 384.8 MB, free: 9.477 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.064e-06/0.3254, allocations: 0.5625 kB / 384.8 MB, free: 9.477 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001275/0.3255, allocations: 91.69 kB / 384.9 MB, free: 9.445 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002968/0.3258, allocations: 23.92 kB / 384.9 MB, free: 9.438 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002021/0.3278, allocations: 2.061 MB / 387 MB, free: 7.789 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002062/0.3281, allocations: 0.7367 MB / 387.7 MB, free: 7.09 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 8.807e-05/0.3282, allocations: 24.42 kB / 387.7 MB, free: 7.086 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.709e-05/0.3283, allocations: 67.28 kB / 387.8 MB, free: 7.039 MB / 318.1 MB Notification: Performance of SimCode: time 4e-07/0.3283, allocations: 0 / 387.8 MB, free: 7.039 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02181/0.3501, allocations: 3.709 MB / 391.5 MB, free: 6.355 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.299/8.65, allocations: 16.77 kB / 391.5 MB, free: 6.34 MB / 318.1 MB (rm -f Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; mkfifo Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe >> ../files/Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2_res.csv --start-time 0 --stop-time 5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.002 Modelica_3_2_3_Modelica_StateGraph_Examples_FirstExample_Variant2.fmu > Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/StateGraph/Examples/FirstExample_Variant2/FirstExample_Variant2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches