Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001844/0.001844, allocations: 132.4 kB / 17.8 MB, free: 5.219 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002221/0.002221, allocations: 210.5 kB / 20.75 MB, free: 2.27 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.409/1.409, allocations: 230.5 MB / 254 MB, free: 15.16 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.StateGraph.Examples.FirstExample_Variant2,fileNamePrefix="Modelica_trunk_Modelica_StateGraph_Examples_FirstExample_Variant2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.StateGraph.Examples.FirstExample_Variant2,fileNamePrefix="Modelica_trunk_Modelica_StateGraph_Examples_FirstExample_Variant2",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001957/0.001957, allocations: 59.91 kB / 373 MB, free: 10.14 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1006/0.1025, allocations: 53.38 MB / 426.3 MB, free: 4.66 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant2): time 0.003271/0.1058, allocations: 1.69 MB / 428 MB, free: 2.965 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007034/0.1065, allocations: 299.1 kB / 428.3 MB, free: 2.672 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.512e-05/0.1066, allocations: 7.938 kB / 428.3 MB, free: 2.664 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001388/0.1067, allocations: 27.67 kB / 428.3 MB, free: 2.637 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 4.335e-05/0.1068, allocations: 11.81 kB / 428.4 MB, free: 2.625 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000383/0.1071, allocations: 119.8 kB / 428.5 MB, free: 2.508 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003409/0.1075, allocations: 271.5 kB / 428.7 MB, free: 2.242 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000289/0.1078, allocations: 165.4 kB / 428.9 MB, free: 2.078 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000106/0.1079, allocations: 95.7 kB / 429 MB, free: 1.984 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001351/0.108, allocations: 95.59 kB / 429.1 MB, free: 1.891 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.479e-05/0.1081, allocations: 24 kB / 429.1 MB, free: 1.867 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.065e-05/0.1081, allocations: 31.92 kB / 429.1 MB, free: 1.836 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.467e-05/0.1082, allocations: 59.83 kB / 429.2 MB, free: 1.777 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000103/0.1083, allocations: 99.47 kB / 429.3 MB, free: 1.68 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003012/0.1086, allocations: 258.9 kB / 429.6 MB, free: 1.426 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.761e-06/0.1086, allocations: 8 kB / 429.6 MB, free: 1.418 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.513e-06/0.1086, allocations: 0 / 429.6 MB, free: 1.418 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.3e-06/0.1086, allocations: 0 / 429.6 MB, free: 1.418 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.0006849/0.1093, allocations: 0.4905 MB / 430.1 MB, free: 0.8711 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.529e-05/0.1093, allocations: 8.031 kB / 430.1 MB, free: 0.8633 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.839e-05/0.1094, allocations: 62.72 kB / 430.1 MB, free: 0.793 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001956/0.1096, allocations: 28.8 kB / 430.1 MB, free: 0.7656 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002997/0.1099, allocations: 236 kB / 430.4 MB, free: 0.4961 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.581e-05/0.1099, allocations: 24.94 kB / 430.4 MB, free: 484 kB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.156e-05/0.11, allocations: 28.38 kB / 430.4 MB, free: 456 kB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004518/0.1104, allocations: 270.5 kB / 430.7 MB, free: 164 kB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.322e-05/0.1104, allocations: 7.922 kB / 430.7 MB, free: 156 kB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.507e-05/0.1104, allocations: 12 kB / 430.7 MB, free: 144 kB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.314e-05/0.1105, allocations: 11.98 kB / 430.7 MB, free: 132 kB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003172/0.1108, allocations: 165.6 kB / 430.9 MB, free: 15.96 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001171/0.1119, allocations: 0.9518 MB / 431.8 MB, free: 14.95 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002811/0.1122, allocations: 161.4 kB / 432 MB, free: 14.77 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001121/0.1123, allocations: 65.7 kB / 432.1 MB, free: 14.7 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.663e-05/0.1124, allocations: 3.938 kB / 432.1 MB, free: 14.7 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002109/0.1126, allocations: 141 kB / 432.2 MB, free: 14.54 MB / 366.1 MB Notification: Performance of pre-optimization done (n=24): time 1.323e-06/0.1126, allocations: 0 / 432.2 MB, free: 14.54 MB / 366.1 MB Notification: Performance of matching and sorting (n=24): time 0.0004415/0.113, allocations: 225.9 kB / 432.4 MB, free: 14.32 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.82e-05/0.1131, allocations: 81.11 kB / 432.5 MB, free: 14.22 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001398/0.1132, allocations: 158.4 kB / 432.7 MB, free: 14.05 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.443e-05/0.1132, allocations: 41.64 kB / 432.7 MB, free: 14.01 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001059/0.1133, allocations: 144.7 kB / 432.8 MB, free: 13.86 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.461e-05/0.1134, allocations: 63.7 kB / 432.9 MB, free: 13.8 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001063/0.1135, allocations: 81.64 kB / 433 MB, free: 13.71 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.000147/0.1137, allocations: 330.8 kB / 433.3 MB, free: 13.38 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001185/0.1138, allocations: 63.75 kB / 433.4 MB, free: 13.32 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001789/0.114, allocations: 148.3 kB / 433.5 MB, free: 13.14 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002652/0.1142, allocations: 196.2 kB / 433.7 MB, free: 12.92 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.288e-06/0.1142, allocations: 4 kB / 433.7 MB, free: 12.92 MB / 366.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0003737/0.1146, allocations: 245.3 kB / 433.9 MB, free: 12.67 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.552e-05/0.1146, allocations: 4.281 kB / 434 MB, free: 12.67 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.504e-06/0.1146, allocations: 8 kB / 434 MB, free: 12.66 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.975e-05/0.1146, allocations: 8 kB / 434 MB, free: 12.65 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001364/0.1148, allocations: 31.92 kB / 434 MB, free: 12.62 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.137e-05/0.1148, allocations: 7.938 kB / 434 MB, free: 12.61 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.262e-05/0.1149, allocations: 27.78 kB / 434 MB, free: 12.59 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.351e-05/0.1149, allocations: 16 kB / 434 MB, free: 12.57 MB / 366.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.0001638/0.1151, allocations: 161.7 kB / 434.2 MB, free: 12.4 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.399e-05/0.1151, allocations: 11.95 kB / 434.2 MB, free: 12.39 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.028e-05/0.1151, allocations: 28.83 kB / 434.2 MB, free: 12.36 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.364e-06/0.1151, allocations: 0 / 434.2 MB, free: 12.36 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.729e-06/0.1151, allocations: 0 / 434.2 MB, free: 12.36 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.947e-06/0.1152, allocations: 4 kB / 434.3 MB, free: 12.36 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007164/0.1159, allocations: 0.5714 MB / 434.8 MB, free: 11.72 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.503e-06/0.1159, allocations: 4 kB / 434.8 MB, free: 11.72 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.13e-05/0.1159, allocations: 15.92 kB / 434.8 MB, free: 11.7 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.004e-06/0.1159, allocations: 4 kB / 434.8 MB, free: 11.7 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.666e-05/0.116, allocations: 7.938 kB / 434.9 MB, free: 11.69 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.356e-06/0.116, allocations: 8 kB / 434.9 MB, free: 11.68 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.61e-07/0.116, allocations: 0 / 434.9 MB, free: 11.68 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003079/0.1163, allocations: 268.1 kB / 435.1 MB, free: 11.4 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.928e-05/0.1163, allocations: 92.95 kB / 435.2 MB, free: 11.29 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.723e-05/0.1164, allocations: 11.94 kB / 435.2 MB, free: 11.28 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.617e-05/0.1164, allocations: 11.98 kB / 435.2 MB, free: 11.27 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.804e-05/0.1165, allocations: 19.98 kB / 435.3 MB, free: 11.25 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.321e-05/0.1165, allocations: 11.92 kB / 435.3 MB, free: 11.24 MB / 366.1 MB Notification: Performance of sorting global known variables: time 8.244e-05/0.1166, allocations: 104.8 kB / 435.4 MB, free: 11.14 MB / 366.1 MB Notification: Performance of sort global known variables: time 7e-08/0.1166, allocations: 0 / 435.4 MB, free: 11.14 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002914/0.1169, allocations: 55.83 kB / 435.4 MB, free: 11.08 MB / 366.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: 18 (transition2.t_start,step.localActive,step.active,transition1.enableFire,initialStep.active,$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 (24): * Single equations (assignments): 19 * 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.0007318/0.1176, allocations: 0.8106 MB / 436.2 MB, free: 10.24 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0003206/0.118, allocations: 172.7 kB / 436.4 MB, free: 10.07 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.984e-06/0.118, allocations: 0 / 436.4 MB, free: 10.07 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001294/0.1181, allocations: 75.62 kB / 436.5 MB, free: 10 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002716/0.1184, allocations: 16.62 kB / 436.5 MB, free: 9.984 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002368/0.1207, allocations: 2.078 MB / 438.6 MB, free: 7.762 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003847/0.1211, allocations: 0.7365 MB / 439.3 MB, free: 7 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 6.953e-05/0.1212, allocations: 21.95 kB / 439.3 MB, free: 6.977 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001078/0.1213, allocations: 59.41 kB / 439.4 MB, free: 6.918 MB / 366.1 MB Notification: Performance of SimCode: time 3.1e-07/0.1213, allocations: 0 / 439.4 MB, free: 6.918 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02444/0.1457, allocations: 3.518 MB / 442.9 MB, free: 3.488 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.7/7.846, allocations: 14.17 kB / 442.9 MB, free: 3.477 MB / 366.1 MB " [Timeout remaining time 652] (rm -f Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; mkfifo Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; head -c 1048576 < Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe >> ../files/Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2.sim & python3 -m fmpy simulate --output-file Modelica_trunk_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_trunk_Modelica_StateGraph_Examples_FirstExample_Variant2.fmu > Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/StateGraph/Examples/FirstExample_Variant2/FirstExample_Variant2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_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_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2_res.csv. Warning: Get data of variable transition1.enableFire from file Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2_res.csv failed! Error: Could not read variable transition2.enableFire in file Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2_res.csv. Warning: Get data of variable transition2.enableFire from file Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 10.455645784037188]