Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001594/0.001594, allocations: 123 kB / 17.79 MB, free: 5.266 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001749/0.001749, allocations: 189.2 kB / 20.73 MB, free: 2.328 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.462/1.462, allocations: 225.6 MB / 249.1 MB, free: 3.617 MB / 190.1 MB " [Timeout remaining time 178] 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_Variant3,fileNamePrefix="Modelica_4_0_0_Modelica_StateGraph_Examples_FirstExample_Variant3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.StateGraph.Examples.FirstExample_Variant3,fileNamePrefix="Modelica_4_0_0_Modelica_StateGraph_Examples_FirstExample_Variant3",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001468/0.001468, allocations: 47.92 kB / 365.6 MB, free: 0.8828 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1038/0.1053, allocations: 52.14 MB / 417.8 MB, free: 12.65 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant3): time 0.00332/0.1086, allocations: 1.715 MB / 419.5 MB, free: 10.92 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.000764/0.1094, allocations: 287.2 kB / 419.7 MB, free: 10.64 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001084/0.1095, allocations: 7.938 kB / 419.8 MB, free: 10.63 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000155/0.1096, allocations: 19.73 kB / 419.8 MB, free: 10.61 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 6.38e-05/0.1097, allocations: 23.73 kB / 419.8 MB, free: 10.59 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004057/0.1101, allocations: 115.8 kB / 419.9 MB, free: 10.48 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000354/0.1105, allocations: 275.4 kB / 420.2 MB, free: 10.21 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002999/0.1108, allocations: 149.6 kB / 420.3 MB, free: 10.06 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001079/0.1109, allocations: 91.72 kB / 420.4 MB, free: 9.973 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001545/0.111, allocations: 103.5 kB / 420.5 MB, free: 9.871 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.493e-05/0.1111, allocations: 24 kB / 420.5 MB, free: 9.848 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.393e-05/0.1112, allocations: 31.94 kB / 420.6 MB, free: 9.816 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.529e-05/0.1112, allocations: 63.81 kB / 420.6 MB, free: 9.754 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001095/0.1113, allocations: 99.47 kB / 420.7 MB, free: 9.656 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003372/0.1117, allocations: 262.9 kB / 421 MB, free: 9.398 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.737e-06/0.1117, allocations: 0 / 421 MB, free: 9.398 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.014e-06/0.1117, allocations: 0 / 421 MB, free: 9.398 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.201e-06/0.1117, allocations: 0 / 421 MB, free: 9.398 MB / 350.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.0007642/0.1125, allocations: 494.4 kB / 421.5 MB, free: 8.859 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.56e-05/0.1125, allocations: 12.03 kB / 421.5 MB, free: 8.848 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.454e-05/0.1126, allocations: 66.66 kB / 421.5 MB, free: 8.773 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.735e-05/0.1126, allocations: 28.8 kB / 421.6 MB, free: 8.746 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003515/0.113, allocations: 236.1 kB / 421.8 MB, free: 8.477 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.604e-05/0.113, allocations: 20.94 kB / 421.8 MB, free: 8.457 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.304e-05/0.1131, allocations: 28.38 kB / 421.9 MB, free: 8.43 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005016/0.1136, allocations: 274.5 kB / 422.1 MB, free: 8.141 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.596e-05/0.1136, allocations: 3.938 kB / 422.1 MB, free: 8.137 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.808e-05/0.1136, allocations: 12 kB / 422.1 MB, free: 8.125 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.135e-06/0.1136, allocations: 8 kB / 422.1 MB, free: 8.117 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003306/0.114, allocations: 173.5 kB / 422.3 MB, free: 7.949 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00128/0.1153, allocations: 0.9674 MB / 423.3 MB, free: 6.918 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003119/0.1156, allocations: 163.5 kB / 423.4 MB, free: 6.742 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001282/0.1157, allocations: 69.69 kB / 423.5 MB, free: 6.668 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.907e-05/0.1157, allocations: 4 kB / 423.5 MB, free: 6.664 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002552/0.116, allocations: 141 kB / 423.7 MB, free: 6.508 MB / 350.1 MB Notification: Performance of pre-optimization done (n=24): time 2.144e-06/0.116, allocations: 0 / 423.7 MB, free: 6.508 MB / 350.1 MB Notification: Performance of matching and sorting (n=24): time 0.0005033/0.1165, allocations: 217.7 kB / 423.9 MB, free: 6.293 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.783e-05/0.1166, allocations: 89.05 kB / 423.9 MB, free: 6.188 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001489/0.1167, allocations: 149.7 kB / 424.1 MB, free: 6.031 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.178e-05/0.1168, allocations: 41.69 kB / 424.1 MB, free: 5.984 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001212/0.1169, allocations: 144.9 kB / 424.3 MB, free: 5.84 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.687e-05/0.1169, allocations: 63.47 kB / 424.3 MB, free: 5.777 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000108/0.117, allocations: 81.67 kB / 424.4 MB, free: 5.691 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001775/0.1172, allocations: 330.8 kB / 424.7 MB, free: 5.359 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000124/0.1173, allocations: 59.97 kB / 424.8 MB, free: 5.301 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001866/0.1175, allocations: 144.3 kB / 424.9 MB, free: 5.129 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002919/0.1178, allocations: 204.8 kB / 425.1 MB, free: 4.898 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.905e-06/0.1178, allocations: 0 / 425.1 MB, free: 4.898 MB / 350.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0004288/0.1183, allocations: 253.5 kB / 425.4 MB, free: 4.645 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.232e-05/0.1183, allocations: 12.03 kB / 425.4 MB, free: 4.633 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.703e-06/0.1183, allocations: 0 / 425.4 MB, free: 4.633 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.073e-05/0.1183, allocations: 4 kB / 425.4 MB, free: 4.629 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001523/0.1185, allocations: 35.91 kB / 425.4 MB, free: 4.594 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.136e-05/0.1185, allocations: 4 kB / 425.4 MB, free: 4.59 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001092/0.1186, allocations: 23.84 kB / 425.5 MB, free: 4.566 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.147e-05/0.1186, allocations: 12 kB / 425.5 MB, free: 4.555 MB / 350.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.0001803/0.1188, allocations: 174.2 kB / 425.6 MB, free: 4.375 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.915e-05/0.1188, allocations: 23.84 kB / 425.7 MB, free: 4.352 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003709/0.1192, allocations: 194.3 kB / 425.9 MB, free: 4.156 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.691e-06/0.1192, allocations: 7.938 kB / 425.9 MB, free: 4.148 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.295e-06/0.1192, allocations: 4 kB / 425.9 MB, free: 4.145 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.969e-06/0.1192, allocations: 0 / 425.9 MB, free: 4.145 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007945/0.12, allocations: 0.5909 MB / 426.5 MB, free: 3.488 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.844e-06/0.12, allocations: 0 / 426.5 MB, free: 3.488 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.72e-05/0.1201, allocations: 19.92 kB / 426.5 MB, free: 3.469 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.172e-06/0.1201, allocations: 7.938 kB / 426.5 MB, free: 3.461 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.65e-05/0.1201, allocations: 8 kB / 426.5 MB, free: 3.453 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.094e-06/0.1201, allocations: 0 / 426.5 MB, free: 3.453 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.172e-06/0.1201, allocations: 0 / 426.5 MB, free: 3.453 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003486/0.1205, allocations: 287.9 kB / 426.8 MB, free: 3.152 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.151e-05/0.1205, allocations: 89 kB / 426.9 MB, free: 3.047 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.179e-05/0.1206, allocations: 15.92 kB / 426.9 MB, free: 3.031 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.363e-05/0.1207, allocations: 12 kB / 426.9 MB, free: 3.02 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.919e-05/0.1207, allocations: 19.97 kB / 426.9 MB, free: 3 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.704e-05/0.1208, allocations: 8 kB / 426.9 MB, free: 2.992 MB / 350.1 MB Notification: Performance of sorting global known variables: time 6.715e-05/0.1208, allocations: 91.27 kB / 427 MB, free: 2.902 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1208, allocations: 0 / 427 MB, free: 2.902 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003266/0.1211, allocations: 55.84 kB / 427.1 MB, free: 2.848 MB / 350.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,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: 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.0007461/0.1219, allocations: 0.8347 MB / 427.9 MB, free: 1.984 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003625/0.1223, allocations: 176 kB / 428.1 MB, free: 1.812 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.1223, allocations: 0 / 428.1 MB, free: 1.812 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001357/0.1224, allocations: 75.84 kB / 428.1 MB, free: 1.738 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002955/0.1227, allocations: 24.61 kB / 428.2 MB, free: 1.715 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002589/0.1253, allocations: 2.078 MB / 430.2 MB, free: 15.49 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004033/0.1257, allocations: 0.7363 MB / 431 MB, free: 14.73 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 8.975e-05/0.1258, allocations: 25.95 kB / 431 MB, free: 14.7 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001192/0.1259, allocations: 63.41 kB / 431.1 MB, free: 14.63 MB / 366.1 MB Notification: Performance of SimCode: time 6.32e-07/0.1259, allocations: 192 / 431.1 MB, free: 14.63 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02444/0.1503, allocations: 3.73 MB / 434.8 MB, free: 10.99 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.079/8.23, allocations: 10.89 kB / 434.8 MB, free: 10.98 MB / 366.1 MB " [Timeout remaining time 652] (rm -f Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; mkfifo Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe >> ../files/Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3_res.csv --start-time 0 --stop-time 5.5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.00109737 Modelica_4_0_0_Modelica_StateGraph_Examples_FirstExample_Variant3.fmu > Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/StateGraph/Examples/FirstExample_Variant3/FirstExample_Variant3.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable transition1.enableFire in file Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3_res.csv. Warning: Get data of variable transition1.enableFire from file Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3_res.csv failed! Error: Could not read variable transition2.enableFire in file Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3_res.csv. Warning: Get data of variable transition2.enableFire from file Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 11.013140962924808]