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.001272/0.001272, 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.00123/0.00123, 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.442/1.442, allocations: 205.1 MB / 224.5 MB, free: 12.24 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.001869/0.001869, allocations: 51.92 kB / 328 MB, free: 3.836 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1055/0.1073, allocations: 46.62 MB / 374.6 MB, free: 5.105 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant2): time 0.00391/0.1113, allocations: 1.659 MB / 376.3 MB, free: 3.434 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009003/0.1123, allocations: 272 kB / 376.5 MB, free: 3.168 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00017/0.1125, allocations: 3.938 kB / 376.5 MB, free: 3.164 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001732/0.1127, allocations: 19.75 kB / 376.6 MB, free: 3.145 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 8.383e-05/0.1128, allocations: 27.72 kB / 376.6 MB, free: 3.117 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005098/0.1133, allocations: 111.8 kB / 376.7 MB, free: 3.008 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.00043/0.1137, allocations: 271.5 kB / 377 MB, free: 2.742 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003876/0.1141, allocations: 182.9 kB / 377.1 MB, free: 2.559 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001312/0.1143, allocations: 91.78 kB / 377.2 MB, free: 2.469 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001578/0.1144, allocations: 103.5 kB / 377.3 MB, free: 2.367 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.464e-05/0.1145, allocations: 20 kB / 377.4 MB, free: 2.348 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.631e-05/0.1146, allocations: 32 kB / 377.4 MB, free: 2.316 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 9.095e-05/0.1147, allocations: 63.81 kB / 377.5 MB, free: 2.254 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001288/0.1148, allocations: 103.4 kB / 377.6 MB, free: 2.152 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003897/0.1152, allocations: 254.9 kB / 377.8 MB, free: 1.902 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.87e-06/0.1152, allocations: 0 / 377.8 MB, free: 1.902 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.693e-06/0.1152, allocations: 0 / 377.8 MB, free: 1.902 MB / 318.1 MB Notification: Performance of Transformations before backend: time 9.679e-06/0.1153, allocations: 0 / 377.8 MB, free: 1.902 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.0008703/0.1161, allocations: 0.4936 MB / 378.3 MB, free: 1.359 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.54e-05/0.1162, allocations: 8.031 kB / 378.3 MB, free: 1.352 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.285e-05/0.1163, allocations: 66.72 kB / 378.4 MB, free: 1.277 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.837e-05/0.1164, allocations: 24.8 kB / 378.4 MB, free: 1.254 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000407/0.1168, allocations: 244 kB / 378.6 MB, free: 0.9766 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.482e-05/0.1168, allocations: 20.94 kB / 378.7 MB, free: 0.957 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.567e-05/0.1169, allocations: 28.38 kB / 378.7 MB, free: 0.9297 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004897/0.1174, allocations: 266.6 kB / 378.9 MB, free: 0.6523 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.241e-05/0.1174, allocations: 11.92 kB / 379 MB, free: 0.6406 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.881e-05/0.1175, allocations: 11.94 kB / 379 MB, free: 0.6289 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.065e-05/0.1175, allocations: 8 kB / 379 MB, free: 0.6211 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003263/0.1178, allocations: 161.6 kB / 379.1 MB, free: 472 kB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2029/0.3207, allocations: 0.9619 MB / 380.1 MB, free: 12.23 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003555/0.3211, allocations: 157.4 kB / 380.2 MB, free: 12.2 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001307/0.3212, allocations: 71.91 kB / 380.3 MB, free: 12.2 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.076e-05/0.3213, allocations: 2.75 kB / 380.3 MB, free: 12.2 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002534/0.3215, allocations: 124.8 kB / 380.4 MB, free: 12.14 MB / 318.1 MB Notification: Performance of pre-optimization done (n=23): time 3.166e-06/0.3215, allocations: 2.969 kB / 380.4 MB, free: 12.14 MB / 318.1 MB Notification: Performance of matching and sorting (n=23): time 0.0005367/0.3221, allocations: 208.2 kB / 380.6 MB, free: 12.11 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.612e-05/0.3221, allocations: 62.38 kB / 380.7 MB, free: 12.04 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001489/0.3223, allocations: 165.8 kB / 380.9 MB, free: 11.94 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.852e-05/0.3223, allocations: 36.14 kB / 380.9 MB, free: 11.91 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001002/0.3224, allocations: 141.2 kB / 381 MB, free: 11.8 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.234e-05/0.3225, allocations: 66.33 kB / 381.1 MB, free: 11.77 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001311/0.3226, allocations: 77.3 kB / 381.2 MB, free: 11.75 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 9.72e-05/0.3227, allocations: 327 kB / 381.5 MB, free: 11.44 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001347/0.3229, allocations: 62.53 kB / 381.6 MB, free: 11.44 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001708/0.323, allocations: 144.2 kB / 381.7 MB, free: 11.36 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00025/0.3233, allocations: 188.2 kB / 381.9 MB, free: 11.28 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.998e-06/0.3233, allocations: 1.375 kB / 381.9 MB, free: 11.28 MB / 318.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0004257/0.3237, allocations: 248.9 kB / 382.1 MB, free: 11.23 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.5e-05/0.3238, allocations: 10.14 kB / 382.1 MB, free: 11.23 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.706e-06/0.3238, allocations: 2.156 kB / 382.1 MB, free: 11.23 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.692e-05/0.3238, allocations: 5.531 kB / 382.1 MB, free: 11.23 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001925/0.324, allocations: 33.62 kB / 382.2 MB, free: 11.23 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.234e-05/0.3241, allocations: 12.86 kB / 382.2 MB, free: 11.22 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001296/0.3242, allocations: 29.16 kB / 382.2 MB, free: 11.21 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.428e-05/0.3242, allocations: 13.31 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.0001517/0.3244, allocations: 159.8 kB / 382.4 MB, free: 11.09 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.286e-05/0.3244, allocations: 15.55 kB / 382.4 MB, free: 11.08 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003817/0.3248, allocations: 188.1 kB / 382.6 MB, free: 11.04 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.204e-06/0.3249, allocations: 2.75 kB / 382.6 MB, free: 11.04 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.165e-06/0.3249, allocations: 5.516 kB / 382.6 MB, free: 11.04 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.291e-06/0.3249, allocations: 1.406 kB / 382.6 MB, free: 11.04 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008846/0.3258, allocations: 0.5872 MB / 383.2 MB, free: 10.65 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.833e-06/0.3258, allocations: 0 / 383.2 MB, free: 10.65 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.311e-05/0.3259, allocations: 19.92 kB / 383.2 MB, free: 10.65 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.579e-06/0.3259, allocations: 1.969 kB / 383.2 MB, free: 10.65 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.993e-05/0.3259, allocations: 11.19 kB / 383.2 MB, free: 10.64 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.208e-06/0.3259, allocations: 6.094 kB / 383.2 MB, free: 10.64 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.643e-06/0.3259, allocations: 0.625 kB / 383.2 MB, free: 10.64 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003573/0.3263, allocations: 280.8 kB / 383.5 MB, free: 10.45 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.385e-05/0.3263, allocations: 93.39 kB / 383.6 MB, free: 10.35 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.135e-05/0.3264, allocations: 8.234 kB / 383.6 MB, free: 10.35 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.7e-05/0.3265, allocations: 8.609 kB / 383.6 MB, free: 10.34 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.518e-05/0.3266, allocations: 21.02 kB / 383.6 MB, free: 10.34 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.73e-05/0.3266, allocations: 6.266 kB / 383.6 MB, free: 10.34 MB / 318.1 MB Notification: Performance of sorting global known variables: time 5.606e-05/0.3267, allocations: 101.8 kB / 383.7 MB, free: 10.26 MB / 318.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3267, allocations: 0 / 383.7 MB, free: 10.26 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003656/0.327, allocations: 56.83 kB / 383.8 MB, free: 10.24 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.0006739/0.3277, allocations: 0.8175 MB / 384.6 MB, free: 9.523 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0004049/0.3281, allocations: 181.1 kB / 384.8 MB, free: 9.469 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.226e-06/0.3281, allocations: 1.938 kB / 384.8 MB, free: 9.469 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001541/0.3283, allocations: 89.19 kB / 384.9 MB, free: 9.438 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003359/0.3286, allocations: 19.81 kB / 384.9 MB, free: 9.43 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002269/0.3309, allocations: 2.062 MB / 387 MB, free: 7.777 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002296/0.3312, allocations: 0.7414 MB / 387.7 MB, free: 7.074 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 9.731e-05/0.3313, allocations: 25.31 kB / 387.7 MB, free: 7.07 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001124/0.3314, allocations: 63.08 kB / 387.8 MB, free: 7.027 MB / 318.1 MB Notification: Performance of SimCode: time 5.21e-07/0.3314, allocations: 1.344 kB / 387.8 MB, free: 7.027 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02984/0.3612, allocations: 3.717 MB / 391.5 MB, free: 6.348 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.645/9.007, allocations: 20.81 kB / 391.5 MB, free: 6.328 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