Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3.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.001689/0.001689, allocations: 111.1 kB / 20.44 MB, free: 1.062 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.002197/0.002197, allocations: 214.7 kB / 23.73 MB, free: 4.16 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.593/1.593, allocations: 230.5 MB / 257.4 MB, free: 7.797 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_Variant3,fileNamePrefix="Modelica_trunk_Modelica_StateGraph_Examples_FirstExample_Variant3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.StateGraph.Examples.FirstExample_Variant3,fileNamePrefix="Modelica_trunk_Modelica_StateGraph_Examples_FirstExample_Variant3",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001941/0.001941, allocations: 60.09 kB / 377.7 MB, free: 2.879 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3036/0.3055, allocations: 53.41 MB / 431.1 MB, free: 6.629 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant3): time 0.003096/0.3086, allocations: 1.698 MB / 432.8 MB, free: 4.93 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.000721/0.3093, allocations: 287.2 kB / 433.1 MB, free: 4.648 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000111/0.3094, allocations: 7.938 kB / 433.1 MB, free: 4.641 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000137/0.3096, allocations: 27.67 kB / 433.1 MB, free: 4.613 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 6.945e-05/0.3096, allocations: 23.78 kB / 433.1 MB, free: 4.59 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003862/0.31, allocations: 119.8 kB / 433.3 MB, free: 4.473 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003344/0.3104, allocations: 279.4 kB / 433.5 MB, free: 4.199 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002921/0.3106, allocations: 147.6 kB / 433.7 MB, free: 4.055 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001119/0.3108, allocations: 99.62 kB / 433.8 MB, free: 3.957 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001385/0.3109, allocations: 83.55 kB / 433.9 MB, free: 3.875 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.745e-05/0.3109, allocations: 27.94 kB / 433.9 MB, free: 3.848 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.563e-05/0.311, allocations: 24 kB / 433.9 MB, free: 3.824 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.004e-05/0.3111, allocations: 63.81 kB / 434 MB, free: 3.762 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 9.32e-05/0.3112, allocations: 79.66 kB / 434 MB, free: 3.684 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003269/0.3115, allocations: 258.9 kB / 434.3 MB, free: 3.43 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.33e-06/0.3115, allocations: 3.984 kB / 434.3 MB, free: 3.426 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.352e-06/0.3115, allocations: 0 / 434.3 MB, free: 3.426 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.48e-06/0.3115, allocations: 0 / 434.3 MB, free: 3.426 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: 60 * Number of variables: 60 Notification: Performance of Generate backend data structure: time 0.0006665/0.3122, allocations: 425.1 kB / 434.7 MB, free: 2.98 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.161e-05/0.3122, allocations: 11.98 kB / 434.7 MB, free: 2.969 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.025e-05/0.3123, allocations: 58.73 kB / 434.8 MB, free: 2.902 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002067/0.3125, allocations: 32.78 kB / 434.8 MB, free: 2.871 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000321/0.3128, allocations: 170.3 kB / 435 MB, free: 2.68 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.231e-05/0.3129, allocations: 28.86 kB / 435 MB, free: 2.652 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.278e-05/0.3129, allocations: 28.38 kB / 435 MB, free: 2.625 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004459/0.3133, allocations: 269.7 kB / 435.3 MB, free: 2.336 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.541e-05/0.3134, allocations: 7.938 kB / 435.3 MB, free: 2.328 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.123e-05/0.3134, allocations: 4 kB / 435.3 MB, free: 2.324 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.003e-05/0.3134, allocations: 8 kB / 435.3 MB, free: 2.316 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002972/0.3137, allocations: 161.6 kB / 435.5 MB, free: 2.16 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001191/0.3149, allocations: 0.8742 MB / 436.4 MB, free: 1.227 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003086/0.3152, allocations: 168.7 kB / 436.5 MB, free: 1.047 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001217/0.3153, allocations: 69.69 kB / 436.6 MB, free: 0.9727 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.327e-05/0.3153, allocations: 0 / 436.6 MB, free: 0.9727 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002511/0.3156, allocations: 144 kB / 436.7 MB, free: 0.8164 MB / 334.1 MB Notification: Performance of pre-optimization done (n=24): time 1.312e-06/0.3156, allocations: 0 / 436.7 MB, free: 0.8164 MB / 334.1 MB Notification: Performance of matching and sorting (n=24): time 0.0004593/0.316, allocations: 221.3 kB / 436.9 MB, free: 0.5938 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.771e-05/0.3161, allocations: 81.11 kB / 437 MB, free: 0.4961 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001542/0.3163, allocations: 157.7 kB / 437.2 MB, free: 340 kB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.842e-05/0.3163, allocations: 33.7 kB / 437.2 MB, free: 300 kB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001241/0.3164, allocations: 148.9 kB / 437.4 MB, free: 144 kB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.563e-05/0.3165, allocations: 63.53 kB / 437.4 MB, free: 80 kB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001227/0.3166, allocations: 85.47 kB / 437.5 MB, free: 15.98 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001552/0.3168, allocations: 330.7 kB / 437.8 MB, free: 15.66 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001186/0.3169, allocations: 63.97 kB / 437.9 MB, free: 15.59 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001879/0.3171, allocations: 140.5 kB / 438 MB, free: 15.43 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002809/0.3174, allocations: 196.3 kB / 438.2 MB, free: 15.2 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.809e-06/0.3174, allocations: 7.938 kB / 438.2 MB, free: 15.2 MB / 350.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0004168/0.3178, allocations: 249.3 kB / 438.5 MB, free: 14.95 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.895e-05/0.3178, allocations: 4 kB / 438.5 MB, free: 14.94 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.02e-05/0.3178, allocations: 4.281 kB / 438.5 MB, free: 14.94 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.934e-05/0.3178, allocations: 8 kB / 438.5 MB, free: 14.93 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001449/0.318, allocations: 39.86 kB / 438.5 MB, free: 14.89 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.123e-05/0.318, allocations: 4 kB / 438.5 MB, free: 14.89 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001088/0.3181, allocations: 31.77 kB / 438.6 MB, free: 14.86 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.146e-05/0.3181, allocations: 12 kB / 438.6 MB, free: 14.84 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.000164/0.3183, allocations: 154.4 kB / 438.7 MB, free: 14.68 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.536e-05/0.3183, allocations: 15.92 kB / 438.7 MB, free: 14.67 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.437e-05/0.3184, allocations: 20.94 kB / 438.8 MB, free: 14.65 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.5e-06/0.3184, allocations: 8 kB / 438.8 MB, free: 14.64 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.491e-06/0.3184, allocations: 0 / 438.8 MB, free: 14.64 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.967e-06/0.3184, allocations: 0 / 438.8 MB, free: 14.64 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007516/0.3191, allocations: 0.5359 MB / 439.3 MB, free: 14.05 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.693e-06/0.3191, allocations: 0 / 439.3 MB, free: 14.05 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.2e-05/0.3192, allocations: 23.92 kB / 439.3 MB, free: 14.02 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.695e-06/0.3192, allocations: 0 / 439.3 MB, free: 14.02 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.722e-05/0.3192, allocations: 11.88 kB / 439.3 MB, free: 14.01 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.763e-06/0.3192, allocations: 0 / 439.3 MB, free: 14.01 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.382e-06/0.3192, allocations: 0 / 439.3 MB, free: 14.01 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003269/0.3195, allocations: 276.1 kB / 439.6 MB, free: 13.72 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.48e-05/0.3196, allocations: 23.84 kB / 439.6 MB, free: 13.7 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.935e-05/0.3196, allocations: 7.938 kB / 439.6 MB, free: 13.69 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.144e-05/0.3197, allocations: 11.98 kB / 439.7 MB, free: 13.68 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.533e-05/0.3198, allocations: 23.91 kB / 439.7 MB, free: 13.66 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.349e-05/0.3198, allocations: 4 kB / 439.7 MB, free: 13.65 MB / 350.1 MB Notification: Performance of sorting global known variables: time 6.717e-05/0.3198, allocations: 95.27 kB / 439.8 MB, free: 13.56 MB / 350.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.3198, allocations: 0 / 439.8 MB, free: 13.56 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002901/0.3201, allocations: 51.89 kB / 439.8 MB, free: 13.51 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: 18 (transition2.t_start,step.localActive,transition1.enableFire,step.active,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.0006562/0.3208, allocations: 0.8145 MB / 440.6 MB, free: 12.66 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003282/0.3211, allocations: 172.3 kB / 440.8 MB, free: 12.5 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.833e-06/0.3211, allocations: 0 / 440.8 MB, free: 12.5 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001323/0.3213, allocations: 75.7 kB / 440.9 MB, free: 12.42 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002858/0.3215, allocations: 27.92 kB / 440.9 MB, free: 12.39 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002386/0.3239, allocations: 2.052 MB / 443 MB, free: 10.2 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001443/0.3241, allocations: 121.5 kB / 443.1 MB, free: 10.06 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 8.194e-05/0.3242, allocations: 21.95 kB / 443.1 MB, free: 10.04 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001174/0.3243, allocations: 59.41 kB / 443.2 MB, free: 9.977 MB / 350.1 MB Notification: Performance of SimCode: time 2.9e-07/0.3243, allocations: 0 / 443.2 MB, free: 9.977 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03052/0.3548, allocations: 4.131 MB / 447.3 MB, free: 5.965 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.87/11.23, allocations: 64 / 447.3 MB, free: 5.965 MB / 350.1 MB " [Timeout remaining time 649] (rm -f Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; mkfifo Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; head -c 1048576 < Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe >> ../files/Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3.sim & python3 -m fmpy simulate --output-file Modelica_trunk_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_trunk_Modelica_StateGraph_Examples_FirstExample_Variant3.fmu > Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/StateGraph/Examples/FirstExample_Variant3/FirstExample_Variant3.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_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_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3_res.csv. Warning: Get data of variable transition1.enableFire from file Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3_res.csv failed! Error: Could not read variable transition2.enableFire in file Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3_res.csv. Warning: Get data of variable transition2.enableFire from file Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 13.920674507971853]