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.0009997/0.0009997, allocations: 95.23 kB / 16.65 MB, free: 6.535 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.00113/0.001131, allocations: 175.4 kB / 17.56 MB, free: 6.18 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.611/1.611, allocations: 223.3 MB / 241.6 MB, free: 14.47 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000291/0.0002913, allocations: 8.688 kB / 301.5 MB, free: 5.785 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1078/0.1081, allocations: 50.41 MB / 351.9 MB, free: 3.359 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant2): time 0.002279/0.1104, allocations: 1.409 MB / 353.3 MB, free: 1.934 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008894/0.1114, allocations: 295.2 kB / 353.6 MB, free: 1.645 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001729/0.1116, allocations: 4 kB / 353.6 MB, free: 1.641 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001404/0.1117, allocations: 19.8 kB / 353.7 MB, free: 1.621 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 6.386e-05/0.1118, allocations: 11.92 kB / 353.7 MB, free: 1.609 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004536/0.1122, allocations: 99.91 kB / 353.8 MB, free: 1.512 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004193/0.1127, allocations: 259.4 kB / 354 MB, free: 1.258 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000358/0.113, allocations: 167.4 kB / 354.2 MB, free: 1.082 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001526/0.1132, allocations: 75.64 kB / 354.3 MB, free: 1.008 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001411/0.1134, allocations: 75.55 kB / 354.3 MB, free: 0.9336 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 3.064e-05/0.1134, allocations: 12 kB / 354.3 MB, free: 0.9219 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.829e-05/0.1135, allocations: 19.98 kB / 354.4 MB, free: 0.9023 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 6.71e-05/0.1136, allocations: 39.84 kB / 354.4 MB, free: 0.8633 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001189/0.1137, allocations: 117.2 kB / 354.5 MB, free: 0.7422 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002726/0.114, allocations: 211.5 kB / 354.7 MB, free: 0.5352 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.729e-06/0.114, allocations: 0 / 354.7 MB, free: 0.5352 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.194e-06/0.114, allocations: 0 / 354.7 MB, free: 0.5352 MB / 286.1 MB Notification: Performance of Transformations before backend: time 9.518e-06/0.114, allocations: 0 / 354.7 MB, free: 0.5352 MB / 286.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.0007782/0.1148, allocations: 458.6 kB / 355.2 MB, free: 36 kB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.85e-05/0.1148, allocations: 8.031 kB / 355.2 MB, free: 28 kB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001046/0.1149, allocations: 58.73 kB / 355.2 MB, free: 15.96 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.177e-05/0.115, allocations: 24.66 kB / 355.3 MB, free: 15.94 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003082/0.1153, allocations: 232.1 kB / 355.5 MB, free: 15.67 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.06e-05/0.1154, allocations: 20.94 kB / 355.5 MB, free: 15.65 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.854e-05/0.1154, allocations: 32.38 kB / 355.5 MB, free: 15.62 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005156/0.116, allocations: 278.2 kB / 355.8 MB, free: 15.33 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.204e-05/0.116, allocations: 0 / 355.8 MB, free: 15.33 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.179e-05/0.116, allocations: 12 kB / 355.8 MB, free: 15.32 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.052e-05/0.116, allocations: 4 kB / 355.8 MB, free: 15.32 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003869/0.1164, allocations: 173.6 kB / 356 MB, free: 15.15 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001436/0.1179, allocations: 0.975 MB / 357 MB, free: 14.11 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003294/0.1182, allocations: 181.3 kB / 357.1 MB, free: 13.91 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001473/0.1184, allocations: 77.69 kB / 357.2 MB, free: 13.83 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.512e-05/0.1184, allocations: 4 kB / 357.2 MB, free: 13.82 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002981/0.1187, allocations: 141 kB / 357.4 MB, free: 13.67 MB / 302.1 MB Notification: Performance of pre-optimization done (n=24): time 2.645e-06/0.1187, allocations: 4 kB / 357.4 MB, free: 13.66 MB / 302.1 MB Notification: Performance of matching and sorting (n=24): time 0.0006069/0.1194, allocations: 227.3 kB / 357.6 MB, free: 13.44 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.937e-05/0.1194, allocations: 89.09 kB / 357.7 MB, free: 13.33 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001516/0.1196, allocations: 156.9 kB / 357.8 MB, free: 13.17 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.908e-05/0.1196, allocations: 37.7 kB / 357.9 MB, free: 13.13 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001121/0.1198, allocations: 136.5 kB / 358 MB, free: 12.99 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.168e-05/0.1198, allocations: 67.17 kB / 358.1 MB, free: 12.93 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.755e-05/0.1199, allocations: 49.69 kB / 358.1 MB, free: 12.87 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001627/0.1201, allocations: 330.9 kB / 358.4 MB, free: 12.54 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001392/0.1202, allocations: 71.97 kB / 358.5 MB, free: 12.47 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001757/0.1204, allocations: 132.5 kB / 358.6 MB, free: 12.31 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003166/0.1207, allocations: 200.9 kB / 358.8 MB, free: 12.08 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.899e-06/0.1208, allocations: 4 kB / 358.8 MB, free: 12.08 MB / 302.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0004294/0.1212, allocations: 249.2 kB / 359.1 MB, free: 11.83 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.9e-05/0.1212, allocations: 4 kB / 359.1 MB, free: 11.82 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.268e-06/0.1212, allocations: 4 kB / 359.1 MB, free: 11.82 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.232e-05/0.1213, allocations: 4 kB / 359.1 MB, free: 11.82 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001521/0.1214, allocations: 32.2 kB / 359.1 MB, free: 11.79 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.563e-05/0.1215, allocations: 15.92 kB / 359.1 MB, free: 11.77 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001237/0.1216, allocations: 31.69 kB / 359.2 MB, free: 11.74 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.352e-05/0.1216, allocations: 12 kB / 359.2 MB, free: 11.73 MB / 302.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.condition,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.0001874/0.1218, allocations: 161.7 kB / 359.3 MB, free: 11.56 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.859e-05/0.1219, allocations: 11.91 kB / 359.4 MB, free: 11.55 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000378/0.1222, allocations: 186.4 kB / 359.5 MB, free: 11.36 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.913e-06/0.1223, allocations: 8 kB / 359.5 MB, free: 11.35 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.101e-06/0.1223, allocations: 0 / 359.5 MB, free: 11.35 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.935e-06/0.1223, allocations: 3.984 kB / 359.5 MB, free: 11.35 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008643/0.1232, allocations: 0.5985 MB / 360.1 MB, free: 10.69 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.126e-06/0.1232, allocations: 0 / 360.1 MB, free: 10.69 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.02e-05/0.1233, allocations: 27.86 kB / 360.2 MB, free: 10.66 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.959e-06/0.1233, allocations: 0 / 360.2 MB, free: 10.66 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.928e-05/0.1233, allocations: 12 kB / 360.2 MB, free: 10.65 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.564e-06/0.1233, allocations: 3.938 kB / 360.2 MB, free: 10.64 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.322e-06/0.1233, allocations: 0 / 360.2 MB, free: 10.64 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003903/0.1237, allocations: 288.4 kB / 360.5 MB, free: 10.34 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.471e-05/0.1238, allocations: 100.8 kB / 360.6 MB, free: 10.23 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.216e-05/0.1238, allocations: 4 kB / 360.6 MB, free: 10.22 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.68e-05/0.1239, allocations: 15.98 kB / 360.6 MB, free: 10.21 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.929e-05/0.124, allocations: 23.97 kB / 360.6 MB, free: 10.18 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.678e-05/0.1241, allocations: 4 kB / 360.6 MB, free: 10.18 MB / 302.1 MB Notification: Performance of sorting global known variables: time 7.846e-05/0.1242, allocations: 95.27 kB / 360.7 MB, free: 10.09 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.1242, allocations: 0 / 360.7 MB, free: 10.09 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003481/0.1245, allocations: 51.84 kB / 360.8 MB, free: 10.04 MB / 302.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.active,step.localActive,transition1.enableFire,initialStep.localActive,$cse1,$cse2,$whenCondition2,$whenCondition1,initialStep.active,initialStep.newActive,initialStep.oldActive,transition1.fire,transition1.t_start,step.newActive,step.oldActive,transition2.condition,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.0007131/0.1252, allocations: 0.834 MB / 361.6 MB, free: 9.172 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.000351/0.1256, allocations: 187.7 kB / 361.8 MB, free: 8.988 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.545e-06/0.1256, allocations: 0 / 361.8 MB, free: 8.988 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001457/0.1258, allocations: 84.34 kB / 361.9 MB, free: 8.906 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003042/0.1261, allocations: 20.61 kB / 361.9 MB, free: 8.887 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00251/0.1286, allocations: 2.144 MB / 364 MB, free: 6.602 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003704/0.129, allocations: 0.7365 MB / 364.8 MB, free: 5.84 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 8.902e-05/0.1291, allocations: 25.95 kB / 364.8 MB, free: 5.816 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000132/0.1292, allocations: 59.41 kB / 364.8 MB, free: 5.758 MB / 302.1 MB Notification: Performance of SimCode: time 5.41e-07/0.1292, allocations: 3.938 kB / 364.8 MB, free: 5.754 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01677/0.146, allocations: 3.353 MB / 368.2 MB, free: 2.527 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000237/0.1463, allocations: 200.7 kB / 368.4 MB, free: 2.273 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.969/2.115, allocations: 0 / 368.4 MB, free: 2.273 MB / 302.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