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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001765/0.001765, 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.001937/0.001937, 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.449/1.449, allocations: 225.6 MB / 249.1 MB, free: 3.605 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_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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001516/0.001516, allocations: 47.92 kB / 365.6 MB, free: 0.875 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1025/0.104, allocations: 52.14 MB / 417.8 MB, free: 12.64 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant2): time 0.003139/0.1071, allocations: 1.688 MB / 419.4 MB, free: 10.94 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007261/0.1079, allocations: 283.2 kB / 419.7 MB, free: 10.66 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.684e-05/0.108, allocations: 4 kB / 419.7 MB, free: 10.66 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001333/0.1081, allocations: 31.67 kB / 419.8 MB, free: 10.62 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 5.388e-05/0.1082, allocations: 15.8 kB / 419.8 MB, free: 10.61 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003979/0.1086, allocations: 123.8 kB / 419.9 MB, free: 10.49 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003614/0.1089, allocations: 275.4 kB / 420.2 MB, free: 10.22 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000285/0.1092, allocations: 159 kB / 420.3 MB, free: 10.06 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001206/0.1093, allocations: 95.7 kB / 420.4 MB, free: 9.965 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001591/0.1095, allocations: 99.53 kB / 420.5 MB, free: 9.867 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.424e-05/0.1095, allocations: 24 kB / 420.5 MB, free: 9.844 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.219e-05/0.1096, allocations: 35.98 kB / 420.6 MB, free: 9.809 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.76e-05/0.1097, allocations: 59.83 kB / 420.6 MB, free: 9.75 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001193/0.1098, allocations: 107.5 kB / 420.7 MB, free: 9.645 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003732/0.1102, allocations: 254.9 kB / 421 MB, free: 9.395 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.027e-06/0.1102, allocations: 0 / 421 MB, free: 9.395 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.674e-06/0.1102, allocations: 3.938 kB / 421 MB, free: 9.391 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.673e-06/0.1102, allocations: 0 / 421 MB, free: 9.391 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.0007911/0.111, allocations: 0.4905 MB / 421.5 MB, free: 8.848 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.066e-05/0.111, allocations: 12.02 kB / 421.5 MB, free: 8.836 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.863e-05/0.1111, allocations: 62.67 kB / 421.5 MB, free: 8.766 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.282e-05/0.1112, allocations: 24.8 kB / 421.6 MB, free: 8.742 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003368/0.1115, allocations: 240 kB / 421.8 MB, free: 8.469 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.435e-05/0.1115, allocations: 24.94 kB / 421.8 MB, free: 8.445 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.781e-05/0.1116, allocations: 28.38 kB / 421.9 MB, free: 8.418 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004841/0.1121, allocations: 274.5 kB / 422.1 MB, free: 8.129 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.419e-05/0.1121, allocations: 3.938 kB / 422.1 MB, free: 8.125 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.516e-05/0.1121, allocations: 12 kB / 422.1 MB, free: 8.113 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.728e-06/0.1121, allocations: 8 kB / 422.1 MB, free: 8.105 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003189/0.1124, allocations: 165.6 kB / 422.3 MB, free: 7.945 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00121/0.1136, allocations: 0.9713 MB / 423.3 MB, free: 6.91 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003168/0.114, allocations: 155.5 kB / 423.4 MB, free: 6.742 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001281/0.1141, allocations: 77.62 kB / 423.5 MB, free: 6.66 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.416e-05/0.1141, allocations: 4 kB / 423.5 MB, free: 6.656 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002667/0.1144, allocations: 133.1 kB / 423.6 MB, free: 6.508 MB / 350.1 MB Notification: Performance of pre-optimization done (n=24): time 1.844e-06/0.1144, allocations: 0 / 423.6 MB, free: 6.508 MB / 350.1 MB Notification: Performance of matching and sorting (n=24): time 0.0004939/0.1149, allocations: 229.6 kB / 423.9 MB, free: 6.281 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.691e-05/0.1149, allocations: 85.09 kB / 423.9 MB, free: 6.18 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000137/0.1151, allocations: 157.7 kB / 424.1 MB, free: 6.016 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.173e-05/0.1151, allocations: 41.83 kB / 424.1 MB, free: 5.969 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001034/0.1152, allocations: 140.8 kB / 424.3 MB, free: 5.828 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.365e-05/0.1153, allocations: 63.52 kB / 424.3 MB, free: 5.766 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001054/0.1154, allocations: 77.69 kB / 424.4 MB, free: 5.684 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001468/0.1155, allocations: 330.8 kB / 424.7 MB, free: 5.352 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001292/0.1157, allocations: 63.95 kB / 424.8 MB, free: 5.289 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001865/0.1158, allocations: 152.2 kB / 424.9 MB, free: 5.109 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002775/0.1161, allocations: 196.8 kB / 425.1 MB, free: 4.887 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.196e-06/0.1161, allocations: 0 / 425.1 MB, free: 4.887 MB / 350.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0004148/0.1165, allocations: 261.5 kB / 425.4 MB, free: 4.625 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.182e-05/0.1166, allocations: 8 kB / 425.4 MB, free: 4.617 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.106e-06/0.1166, allocations: 4 kB / 425.4 MB, free: 4.613 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.771e-05/0.1166, allocations: 4 kB / 425.4 MB, free: 4.609 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001547/0.1167, allocations: 35.86 kB / 425.4 MB, free: 4.574 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.342e-05/0.1168, allocations: 4 kB / 425.5 MB, free: 4.57 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000108/0.1169, allocations: 31.78 kB / 425.5 MB, free: 4.539 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.093e-05/0.1169, allocations: 11.98 kB / 425.5 MB, free: 4.527 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.0001634/0.1171, allocations: 162.5 kB / 425.7 MB, free: 4.359 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.915e-05/0.1171, allocations: 15.91 kB / 425.7 MB, free: 4.344 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003773/0.1175, allocations: 202.2 kB / 425.9 MB, free: 4.141 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.654e-06/0.1175, allocations: 7.984 kB / 425.9 MB, free: 4.133 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.109e-06/0.1175, allocations: 0 / 425.9 MB, free: 4.133 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.749e-06/0.1175, allocations: 0 / 425.9 MB, free: 4.133 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008855/0.1184, allocations: 0.5909 MB / 426.5 MB, free: 3.477 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.934e-06/0.1184, allocations: 0 / 426.5 MB, free: 3.477 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.297e-05/0.1185, allocations: 19.98 kB / 426.5 MB, free: 3.457 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.804e-06/0.1185, allocations: 7.938 kB / 426.5 MB, free: 3.449 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.404e-05/0.1185, allocations: 4 kB / 426.5 MB, free: 3.445 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.61e-06/0.1185, allocations: 7.938 kB / 426.5 MB, free: 3.438 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.62e-07/0.1185, allocations: 0 / 426.5 MB, free: 3.438 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003695/0.1189, allocations: 284.2 kB / 426.8 MB, free: 3.141 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.271e-05/0.1189, allocations: 96.94 kB / 426.9 MB, free: 3.027 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.817e-05/0.119, allocations: 11.94 kB / 426.9 MB, free: 3.016 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.791e-05/0.1191, allocations: 4 kB / 426.9 MB, free: 3.012 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.3e-05/0.1191, allocations: 23.97 kB / 426.9 MB, free: 2.988 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.4e-05/0.1192, allocations: 8 kB / 426.9 MB, free: 2.98 MB / 350.1 MB Notification: Performance of sorting global known variables: time 7.796e-05/0.1192, allocations: 106.1 kB / 427 MB, free: 2.879 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.1192, allocations: 0 / 427 MB, free: 2.879 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003232/0.1196, allocations: 51.89 kB / 427.1 MB, free: 2.828 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,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.0007424/0.1203, allocations: 0.8385 MB / 427.9 MB, free: 1.961 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003686/0.1207, allocations: 180 kB / 428.1 MB, free: 1.785 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.643e-06/0.1207, allocations: 3.938 kB / 428.1 MB, free: 1.781 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001368/0.1208, allocations: 72.47 kB / 428.2 MB, free: 1.711 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003163/0.1211, allocations: 28 kB / 428.2 MB, free: 1.684 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002501/0.1236, allocations: 2.093 MB / 430.3 MB, free: 15.44 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003732/0.124, allocations: 0.7324 MB / 431 MB, free: 14.68 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 8.708e-05/0.1241, allocations: 25.94 kB / 431 MB, free: 14.65 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001286/0.1242, allocations: 63.41 kB / 431.1 MB, free: 14.59 MB / 366.1 MB Notification: Performance of SimCode: time 3.01e-07/0.1242, allocations: 0 / 431.1 MB, free: 14.59 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03115/0.1554, allocations: 3.766 MB / 434.9 MB, free: 10.92 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.307/8.463, allocations: 10.55 kB / 434.9 MB, free: 10.91 MB / 366.1 MB " [Timeout remaining time 651] (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 & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2_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_Variant2.fmu > Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2_res.csv","/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) [Timeout 660] "Error: Could not read variable transition1.enableFire in file Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2_res.csv. Warning: Get data of variable transition1.enableFire from file Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2_res.csv failed! Error: Could not read variable transition2.enableFire in file Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2_res.csv. Warning: Get data of variable transition2.enableFire from file Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 11.355288311839104]