Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.StateGraph.Examples.FirstExample.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.001745/0.001745, allocations: 112.5 kB / 20.43 MB, free: 1.453 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.002134/0.002134, allocations: 212.3 kB / 23.74 MB, free: 4.66 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.521/1.521, allocations: 230.5 MB / 257.4 MB, free: 8.012 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,fileNamePrefix="Modelica_trunk_Modelica_StateGraph_Examples_FirstExample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.StateGraph.Examples.FirstExample,fileNamePrefix="Modelica_trunk_Modelica_StateGraph_Examples_FirstExample",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001887/0.001887, allocations: 71.89 kB / 377.8 MB, free: 3.047 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2818/0.2837, allocations: 53.41 MB / 431.2 MB, free: 6.719 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample): time 0.002805/0.2865, allocations: 1.498 MB / 432.7 MB, free: 5.215 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007642/0.2872, allocations: 287.2 kB / 432.9 MB, free: 4.934 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001144/0.2874, allocations: 4 kB / 432.9 MB, free: 4.93 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001378/0.2875, allocations: 31.61 kB / 433 MB, free: 4.898 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 4.777e-05/0.2875, allocations: 11.88 kB / 433 MB, free: 4.887 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003958/0.2879, allocations: 119.8 kB / 433.1 MB, free: 4.77 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003488/0.2883, allocations: 267.5 kB / 433.4 MB, free: 4.508 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002785/0.2886, allocations: 138.6 kB / 433.5 MB, free: 4.367 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001054/0.2887, allocations: 87.75 kB / 433.6 MB, free: 4.281 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001598/0.2888, allocations: 99.53 kB / 433.7 MB, free: 4.184 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.323e-05/0.2889, allocations: 24 kB / 433.7 MB, free: 4.16 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.675e-05/0.2889, allocations: 27.94 kB / 433.7 MB, free: 4.133 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.322e-05/0.289, allocations: 51.89 kB / 433.8 MB, free: 4.082 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001122/0.2891, allocations: 99.45 kB / 433.9 MB, free: 3.984 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003093/0.2894, allocations: 251.3 kB / 434.1 MB, free: 3.742 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.937e-06/0.2894, allocations: 0 / 434.1 MB, free: 3.742 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.373e-06/0.2894, allocations: 0 / 434.1 MB, free: 3.742 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.703e-06/0.2894, allocations: 4 kB / 434.1 MB, free: 3.738 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 55 * Number of variables: 55 Notification: Performance of Generate backend data structure: time 0.0006691/0.2901, allocations: 409.1 kB / 434.5 MB, free: 3.309 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.033e-05/0.2901, allocations: 8.031 kB / 434.5 MB, free: 3.301 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.236e-05/0.2902, allocations: 58.72 kB / 434.6 MB, free: 3.234 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002/0.2904, allocations: 24.84 kB / 434.6 MB, free: 3.211 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000299/0.2907, allocations: 170.2 kB / 434.8 MB, free: 3.02 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.751e-05/0.2908, allocations: 28.86 kB / 434.8 MB, free: 2.992 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.969e-05/0.2908, allocations: 28.38 kB / 434.8 MB, free: 2.965 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004241/0.2912, allocations: 239.2 kB / 435.1 MB, free: 2.719 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.403e-05/0.2912, allocations: 3.938 kB / 435.1 MB, free: 2.715 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.169e-05/0.2913, allocations: 8 kB / 435.1 MB, free: 2.707 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.197e-06/0.2913, allocations: 4 kB / 435.1 MB, free: 2.703 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002922/0.2916, allocations: 157.7 kB / 435.2 MB, free: 2.547 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009709/0.2925, allocations: 0.6666 MB / 435.9 MB, free: 1.836 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003063/0.2928, allocations: 150.9 kB / 436.1 MB, free: 1.68 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001196/0.293, allocations: 68.22 kB / 436.1 MB, free: 1.613 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.406e-05/0.293, allocations: 11.88 kB / 436.1 MB, free: 1.602 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000208/0.2932, allocations: 118.4 kB / 436.3 MB, free: 1.477 MB / 334.1 MB Notification: Performance of pre-optimization done (n=24): time 1.493e-06/0.2932, allocations: 0 / 436.3 MB, free: 1.477 MB / 334.1 MB Notification: Performance of matching and sorting (n=24): time 0.0004276/0.2936, allocations: 213.4 kB / 436.5 MB, free: 1.262 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.582e-05/0.2937, allocations: 55.41 kB / 436.5 MB, free: 1.195 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001318/0.2938, allocations: 154 kB / 436.7 MB, free: 1.035 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.267e-05/0.2938, allocations: 33.7 kB / 436.7 MB, free: 0.9961 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001024/0.2939, allocations: 140.7 kB / 436.8 MB, free: 0.8516 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.061e-05/0.294, allocations: 59.55 kB / 436.9 MB, free: 0.793 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001081/0.2941, allocations: 74.02 kB / 437 MB, free: 0.7109 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001444/0.2942, allocations: 326.8 kB / 437.3 MB, free: 392 kB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001155/0.2943, allocations: 64.62 kB / 437.3 MB, free: 328 kB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000161/0.2945, allocations: 124.1 kB / 437.5 MB, free: 180 kB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002583/0.2948, allocations: 182.6 kB / 437.6 MB, free: 15.97 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.394e-06/0.2948, allocations: 4 kB / 437.6 MB, free: 15.97 MB / 350.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0003629/0.2951, allocations: 233.4 kB / 437.9 MB, free: 15.73 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.74e-05/0.2951, allocations: 14.44 kB / 437.9 MB, free: 15.72 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.344e-06/0.2952, allocations: 3.984 kB / 437.9 MB, free: 15.72 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.833e-05/0.2952, allocations: 7.984 kB / 437.9 MB, free: 15.71 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001314/0.2953, allocations: 27.88 kB / 437.9 MB, free: 15.68 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.26e-05/0.2953, allocations: 11.92 kB / 437.9 MB, free: 15.67 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.416e-05/0.2954, allocations: 36 kB / 438 MB, free: 15.64 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.624e-05/0.2954, allocations: 8 kB / 438 MB, free: 15.63 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 31 ($PRE.transition1.enableFire,$PRE.transition2.enableFire,stateGraphRoot.activeSteps,transition2.t_start,$PRE.transition2.t_start,transition2.fire,transition2.enableFire,step.oldActive,$PRE.step.oldActive,step.newActive,$PRE.step.newActive,step.localActive,$PRE.step.localActive,step.active,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,stateGraphRoot.resume,stateGraphRoot.suspend,transition2.condition,transition1.condition) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (39): * Single equations (assignments): 39 * 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.0001495/0.2956, allocations: 157.7 kB / 438.1 MB, free: 15.46 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.387e-05/0.2956, allocations: 11.95 kB / 438.2 MB, free: 15.45 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.653e-05/0.2956, allocations: 16.94 kB / 438.2 MB, free: 15.43 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.528e-06/0.2957, allocations: 4 kB / 438.2 MB, free: 15.43 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.268e-06/0.2957, allocations: 0 / 438.2 MB, free: 15.43 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.282e-06/0.2957, allocations: 3.984 kB / 438.2 MB, free: 15.43 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007296/0.2964, allocations: 0.5294 MB / 438.7 MB, free: 14.85 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.904e-06/0.2964, allocations: 0 / 438.7 MB, free: 14.85 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.471e-05/0.2965, allocations: 19.92 kB / 438.7 MB, free: 14.83 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.284e-06/0.2965, allocations: 0 / 438.7 MB, free: 14.83 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.547e-05/0.2965, allocations: 4 kB / 438.7 MB, free: 14.82 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.526e-06/0.2965, allocations: 4 kB / 438.7 MB, free: 14.82 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.21e-07/0.2965, allocations: 0 / 438.7 MB, free: 14.82 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003062/0.2968, allocations: 275.9 kB / 439 MB, free: 14.54 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.969e-05/0.2968, allocations: 15.89 kB / 439 MB, free: 14.52 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.338e-05/0.2969, allocations: 4 kB / 439 MB, free: 14.52 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.15e-05/0.2969, allocations: 4 kB / 439 MB, free: 14.51 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.135e-05/0.297, allocations: 27.89 kB / 439.1 MB, free: 14.48 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.304e-05/0.297, allocations: 8 kB / 439.1 MB, free: 14.48 MB / 350.1 MB Notification: Performance of sorting global known variables: time 6.852e-05/0.2971, allocations: 98.77 kB / 439.2 MB, free: 14.38 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.2971, allocations: 0 / 439.2 MB, free: 14.38 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002776/0.2974, allocations: 55.78 kB / 439.2 MB, free: 14.33 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 17 (transition2.enableFire,step.active,transition1.enableFire,initialStep.active,$whenCondition2,$whenCondition1,initialStep.localActive,initialStep.newActive,initialStep.oldActive,transition1.fire,transition1.t_start,step.localActive,step.newActive,step.oldActive,transition2.fire,transition2.t_start,stateGraphRoot.activeSteps) * Number of discrete states: 2 (initialStep.newActive,step.newActive) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (24): * Single equations (assignments): 20 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * 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.0005952/0.298, allocations: 0.7982 MB / 440 MB, free: 13.5 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003025/0.2983, allocations: 160.4 kB / 440.2 MB, free: 13.35 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.733e-06/0.2983, allocations: 0 / 440.2 MB, free: 13.35 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001232/0.2984, allocations: 80.06 kB / 440.2 MB, free: 13.27 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002705/0.2987, allocations: 23.94 kB / 440.3 MB, free: 13.25 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002189/0.3009, allocations: 1.984 MB / 442.3 MB, free: 11.14 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003548/0.3012, allocations: 0.74 MB / 443 MB, free: 10.38 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 6.11e-05/0.3013, allocations: 17.95 kB / 443 MB, free: 10.36 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001051/0.3014, allocations: 59.41 kB / 443.1 MB, free: 10.3 MB / 350.1 MB Notification: Performance of SimCode: time 3.41e-07/0.3014, allocations: 0 / 443.1 MB, free: 10.3 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02907/0.3304, allocations: 3.662 MB / 446.7 MB, free: 6.746 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.5/10.83, allocations: 3.984 kB / 446.7 MB, free: 6.742 MB / 350.1 MB " [Timeout remaining time 649] (rm -f Modelica_trunk_Modelica.StateGraph.Examples.FirstExample.pipe ; mkfifo Modelica_trunk_Modelica.StateGraph.Examples.FirstExample.pipe ; head -c 1048576 < Modelica_trunk_Modelica.StateGraph.Examples.FirstExample.pipe >> ../files/Modelica_trunk_Modelica.StateGraph.Examples.FirstExample.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_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.fmu > Modelica_trunk_Modelica.StateGraph.Examples.FirstExample.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/StateGraph/Examples/FirstExample/FirstExample.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.StateGraph.Examples.FirstExample.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_res.csv. Warning: Get data of variable transition1.enableFire from file Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_res.csv failed! Error: Could not read variable transition2.enableFire in file Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_res.csv. Warning: Get data of variable transition2.enableFire from file Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 13.51145094200183]