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.0008826/0.0008826, allocations: 80.34 kB / 20.67 MB, free: 3.887 MB / 18.57 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.0008744/0.0008744, allocations: 156.9 kB / 23.94 MB, free: 0.6133 MB / 18.57 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 0.8987/0.8987, allocations: 177 MB / 204.1 MB, free: 5.703 MB / 186.7 MB " [Timeout remaining time 179] 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 1.443e-06/1.443e-06, allocations: 0 / 324.5 MB, free: 15.91 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.157e-05/2.301e-05, allocations: 3.266 kB / 324.5 MB, free: 15.9 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant2): time 0.002145/0.002168, allocations: 1.668 MB / 326.2 MB, free: 14.22 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0005507/0.002719, allocations: 291.1 kB / 326.4 MB, free: 13.93 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.929e-05/0.002808, allocations: 8 kB / 326.4 MB, free: 13.93 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001244/0.002932, allocations: 31.61 kB / 326.5 MB, free: 13.89 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 3.686e-05/0.002969, allocations: 23.78 kB / 326.5 MB, free: 13.87 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000384/0.003353, allocations: 119.7 kB / 326.6 MB, free: 13.75 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002438/0.003597, allocations: 275.5 kB / 326.9 MB, free: 13.48 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002163/0.003813, allocations: 151.6 kB / 327 MB, free: 13.34 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00011/0.003923, allocations: 143.7 kB / 327.2 MB, free: 13.2 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.829e-05/0.004021, allocations: 75.75 kB / 327.2 MB, free: 13.12 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.867e-05/0.00405, allocations: 24 kB / 327.3 MB, free: 13.1 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.434e-05/0.004104, allocations: 28 kB / 327.3 MB, free: 13.07 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 4.912e-05/0.004153, allocations: 55.77 kB / 327.4 MB, free: 13.02 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 6.411e-05/0.004218, allocations: 71.81 kB / 327.4 MB, free: 12.95 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002384/0.004456, allocations: 271.1 kB / 327.7 MB, free: 12.68 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.844e-06/0.004458, allocations: 0 / 327.7 MB, free: 12.68 MB / 298.7 MB Notification: Performance of FrontEnd: time 8.31e-07/0.004459, allocations: 0 / 327.7 MB, free: 12.68 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.29e-06/0.004464, allocations: 3.938 kB / 327.7 MB, free: 12.68 MB / 298.7 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.0005064/0.00497, allocations: 421.2 kB / 328.1 MB, free: 12.23 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.441e-05/0.005015, allocations: 11.98 kB / 328.1 MB, free: 12.22 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.468e-05/0.00507, allocations: 62.72 kB / 328.2 MB, free: 12.15 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001346/0.005204, allocations: 32.78 kB / 328.2 MB, free: 12.12 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002599/0.005464, allocations: 169.5 kB / 328.4 MB, free: 11.93 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.487e-05/0.005499, allocations: 20.88 kB / 328.4 MB, free: 11.91 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.219e-05/0.005541, allocations: 32.38 kB / 328.4 MB, free: 11.88 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009005/0.006442, allocations: 269.8 kB / 328.7 MB, free: 11.59 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.056e-05/0.006482, allocations: 8.172 kB / 328.7 MB, free: 11.59 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.239e-05/0.006504, allocations: 8.375 kB / 328.7 MB, free: 11.58 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.007e-05/0.006545, allocations: 16.12 kB / 328.7 MB, free: 11.56 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004947/0.007039, allocations: 165.8 kB / 328.9 MB, free: 11.39 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009779/0.008017, allocations: 0.8667 MB / 329.7 MB, free: 10.47 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002039/0.008221, allocations: 153.4 kB / 329.9 MB, free: 10.3 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.419e-05/0.008295, allocations: 73.69 kB / 330 MB, free: 10.23 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.841e-05/0.008314, allocations: 7.938 kB / 330 MB, free: 10.22 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001499/0.008463, allocations: 141.7 kB / 330.1 MB, free: 10.06 MB / 298.7 MB Notification: Performance of pre-optimization done (n=24): time 1.263e-06/0.008465, allocations: 0 / 330.1 MB, free: 10.06 MB / 298.7 MB Notification: Performance of matching and sorting (n=24): time 0.0003183/0.008783, allocations: 233.2 kB / 330.3 MB, free: 9.828 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.118e-05/0.008834, allocations: 81.11 kB / 330.4 MB, free: 9.73 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000102/0.008936, allocations: 164.6 kB / 330.6 MB, free: 9.562 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.064e-05/0.008957, allocations: 37.7 kB / 330.6 MB, free: 9.52 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.485e-05/0.009032, allocations: 144.8 kB / 330.8 MB, free: 9.371 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.342e-05/0.009065, allocations: 59.53 kB / 330.8 MB, free: 9.312 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.959e-05/0.009135, allocations: 81.47 kB / 330.9 MB, free: 9.227 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.662e-05/0.009221, allocations: 326.8 kB / 331.2 MB, free: 8.898 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.769e-05/0.009299, allocations: 59.97 kB / 331.3 MB, free: 8.84 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001105/0.00941, allocations: 144.5 kB / 331.4 MB, free: 8.668 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001731/0.009583, allocations: 188.6 kB / 331.6 MB, free: 8.453 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.839e-06/0.009587, allocations: 7.938 kB / 331.6 MB, free: 8.445 MB / 298.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0002469/0.009834, allocations: 257.3 kB / 331.9 MB, free: 8.188 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.544e-05/0.00985, allocations: 7.984 kB / 331.9 MB, free: 8.18 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.68e-06/0.009856, allocations: 4 kB / 331.9 MB, free: 8.176 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.211e-05/0.009868, allocations: 7.938 kB / 331.9 MB, free: 8.168 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.036e-05/0.009958, allocations: 35.86 kB / 331.9 MB, free: 8.133 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.805e-06/0.009966, allocations: 4 kB / 331.9 MB, free: 8.129 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.87e-05/0.01002, allocations: 27.78 kB / 331.9 MB, free: 8.102 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.296e-05/0.01004, allocations: 12 kB / 332 MB, free: 8.09 MB / 298.7 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.0001117/0.01015, allocations: 170 kB / 332.1 MB, free: 7.914 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.531e-05/0.01016, allocations: 11.91 kB / 332.1 MB, free: 7.902 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.737e-05/0.01019, allocations: 20.94 kB / 332.2 MB, free: 7.883 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.174e-06/0.01019, allocations: 0 / 332.2 MB, free: 7.883 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.32e-06/0.0102, allocations: 4 kB / 332.2 MB, free: 7.879 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.56e-06/0.0102, allocations: 3.984 kB / 332.2 MB, free: 7.875 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004532/0.01066, allocations: 0.5391 MB / 332.7 MB, free: 7.277 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.173e-06/0.01066, allocations: 0 / 332.7 MB, free: 7.277 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.498e-05/0.01069, allocations: 15.94 kB / 332.7 MB, free: 7.262 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.164e-06/0.0107, allocations: 4 kB / 332.7 MB, free: 7.258 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.042e-05/0.01071, allocations: 8 kB / 332.7 MB, free: 7.25 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.635e-06/0.01071, allocations: 3.984 kB / 332.7 MB, free: 7.246 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.01e-07/0.01071, allocations: 0 / 332.7 MB, free: 7.246 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001838/0.01089, allocations: 273.1 kB / 333 MB, free: 6.961 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.329e-05/0.01091, allocations: 19.84 kB / 333 MB, free: 6.941 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.711e-05/0.01092, allocations: 11.92 kB / 333 MB, free: 6.93 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.285e-05/0.01097, allocations: 4 kB / 333 MB, free: 6.926 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.588e-05/0.01102, allocations: 23.91 kB / 333.1 MB, free: 6.902 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.101e-05/0.01103, allocations: 15.98 kB / 333.1 MB, free: 6.887 MB / 298.7 MB Notification: Performance of sorting global known variables: time 4.317e-05/0.01108, allocations: 91.27 kB / 333.2 MB, free: 6.797 MB / 298.7 MB Notification: Performance of sort global known variables: time 6e-08/0.01108, allocations: 8 kB / 333.2 MB, free: 6.789 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.000207/0.01128, allocations: 51.84 kB / 333.2 MB, free: 6.738 MB / 298.7 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.0003717/0.01166, allocations: 0.8108 MB / 334 MB, free: 5.898 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002209/0.01188, allocations: 167.7 kB / 334.2 MB, free: 5.734 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.623e-06/0.01188, allocations: 0 / 334.2 MB, free: 5.734 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 8.713e-05/0.01197, allocations: 76.41 kB / 334.3 MB, free: 5.66 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00023/0.0122, allocations: 28 kB / 334.3 MB, free: 5.633 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001552/0.01375, allocations: 2.079 MB / 336.4 MB, free: 3.406 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.128e-05/0.01384, allocations: 133.5 kB / 336.5 MB, free: 3.258 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 5.73e-05/0.0139, allocations: 21.89 kB / 336.5 MB, free: 3.238 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.212e-05/0.01398, allocations: 64.45 kB / 336.6 MB, free: 3.172 MB / 298.7 MB Notification: Performance of SimCode: time 9.42e-07/0.01398, allocations: 0 / 336.6 MB, free: 3.172 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01548/0.02946, allocations: 4.287 MB / 340.9 MB, free: 15 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.713/6.742, allocations: 8 kB / 340.9 MB, free: 14.99 MB / 314.7 MB " [Timeout remaining time 653] (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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/StateGraph/Examples/FirstExample_Variant2/FirstExample_Variant2.csv","/var/lib/jenkins/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: 8.543177413754165]