Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001399/0.001399, allocations: 109.6 kB / 21.18 MB, free: 0.6992 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001417/0.001417, allocations: 216.7 kB / 24.5 MB, free: 4.027 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.418/1.418, allocations: 207.6 MB / 235.3 MB, free: 10.01 MB / 190.1 MB " [Timeout remaining time 178] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.StateGraph.Examples.FirstExample_Variant2,fileNamePrefix="Modelica_3_2_3_Modelica_StateGraph_Examples_FirstExample_Variant2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.StateGraph.Examples.FirstExample_Variant2,fileNamePrefix="Modelica_3_2_3_Modelica_StateGraph_Examples_FirstExample_Variant2",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001865/0.001865, allocations: 51.92 kB / 347.2 MB, free: 10.07 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3241/0.3259, allocations: 49.17 MB / 396.3 MB, free: 8.977 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant2): time 0.003633/0.3296, allocations: 1.668 MB / 398 MB, free: 7.84 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007837/0.3303, allocations: 261.4 kB / 398.3 MB, free: 7.664 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001284/0.3305, allocations: 10.56 kB / 398.3 MB, free: 7.656 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001578/0.3306, allocations: 27.22 kB / 398.3 MB, free: 7.637 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 7.18e-05/0.3307, allocations: 22.66 kB / 398.3 MB, free: 7.617 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00062/0.3313, allocations: 124.9 kB / 398.4 MB, free: 7.551 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005049/0.3318, allocations: 272.1 kB / 398.7 MB, free: 7.434 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004359/0.3323, allocations: 163.5 kB / 398.9 MB, free: 7.355 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000142/0.3324, allocations: 92.06 kB / 399 MB, free: 7.309 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002204/0.3326, allocations: 104 kB / 399.1 MB, free: 7.246 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.553e-05/0.3327, allocations: 23.41 kB / 399.1 MB, free: 7.246 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001154/0.3328, allocations: 33.61 kB / 399.1 MB, free: 7.242 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 9.725e-05/0.3329, allocations: 61.03 kB / 399.2 MB, free: 7.203 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001734/0.3331, allocations: 96.77 kB / 399.3 MB, free: 7.137 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006014/0.3337, allocations: 255.3 kB / 399.5 MB, free: 7.023 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.771e-06/0.3337, allocations: 0 / 399.5 MB, free: 7.023 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.733e-06/0.3337, allocations: 0 / 399.5 MB, free: 7.023 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.154e-05/0.3337, allocations: 1.219 kB / 399.5 MB, free: 7.023 MB / 318.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.0009051/0.3346, allocations: 421.8 kB / 399.9 MB, free: 6.668 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.673e-05/0.3347, allocations: 13.17 kB / 399.9 MB, free: 6.664 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.997e-05/0.3348, allocations: 60.86 kB / 400 MB, free: 6.609 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.004e-05/0.3348, allocations: 31.11 kB / 400 MB, free: 6.594 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004212/0.3353, allocations: 166.4 kB / 400.2 MB, free: 6.438 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.081e-05/0.3353, allocations: 22.02 kB / 400.2 MB, free: 6.426 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.967e-05/0.3354, allocations: 31.55 kB / 400.2 MB, free: 6.414 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000696/0.3361, allocations: 277.7 kB / 400.5 MB, free: 6.262 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.14e-05/0.3361, allocations: 3.938 kB / 400.5 MB, free: 6.258 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.463e-05/0.3361, allocations: 11.47 kB / 400.5 MB, free: 6.25 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.694e-05/0.3361, allocations: 6.781 kB / 400.5 MB, free: 6.25 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000441/0.3366, allocations: 164.7 kB / 400.7 MB, free: 6.188 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001624/0.3382, allocations: 0.944 MB / 401.6 MB, free: 5.426 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003992/0.3386, allocations: 144.7 kB / 401.8 MB, free: 5.352 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001528/0.3388, allocations: 70.03 kB / 401.9 MB, free: 5.316 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.448e-05/0.3388, allocations: 2.156 kB / 401.9 MB, free: 5.316 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002354/0.339, allocations: 124.4 kB / 402 MB, free: 5.234 MB / 318.1 MB Notification: Performance of pre-optimization done (n=23): time 1.713e-06/0.339, allocations: 0 / 402 MB, free: 5.234 MB / 318.1 MB Notification: Performance of matching and sorting (n=23): time 0.0005241/0.3395, allocations: 211.9 kB / 402.2 MB, free: 5.145 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.32e-05/0.3396, allocations: 55.19 kB / 402.2 MB, free: 5.082 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001741/0.3398, allocations: 159.2 kB / 402.4 MB, free: 4.953 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.784e-05/0.3398, allocations: 38.7 kB / 402.4 MB, free: 4.914 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.602e-05/0.3399, allocations: 145 kB / 402.6 MB, free: 4.785 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.387e-05/0.3399, allocations: 61.66 kB / 402.6 MB, free: 4.738 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001208/0.3401, allocations: 78.7 kB / 402.7 MB, free: 4.691 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 8.3e-05/0.3401, allocations: 326.9 kB / 403 MB, free: 4.371 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001251/0.3403, allocations: 63.16 kB / 403.1 MB, free: 4.352 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001637/0.3404, allocations: 139.2 kB / 403.2 MB, free: 4.242 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002626/0.3407, allocations: 192.3 kB / 403.4 MB, free: 4.098 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.386e-06/0.3407, allocations: 1.312 kB / 403.4 MB, free: 4.098 MB / 318.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0004035/0.3411, allocations: 250.6 kB / 403.7 MB, free: 3.98 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.294e-05/0.3411, allocations: 7.031 kB / 403.7 MB, free: 3.98 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.224e-06/0.3411, allocations: 1.375 kB / 403.7 MB, free: 3.98 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.031e-05/0.3412, allocations: 4.062 kB / 403.7 MB, free: 3.98 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001524/0.3413, allocations: 36.23 kB / 403.7 MB, free: 3.973 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.144e-05/0.3413, allocations: 12.34 kB / 403.7 MB, free: 3.965 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001065/0.3414, allocations: 28.77 kB / 403.7 MB, free: 3.945 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.882e-05/0.3415, allocations: 18.19 kB / 403.8 MB, free: 3.941 MB / 318.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: 30 ($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,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 (40): * Single equations (assignments): 40 * 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.0001637/0.3416, allocations: 153.8 kB / 403.9 MB, free: 3.801 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.344e-05/0.3417, allocations: 17.11 kB / 403.9 MB, free: 3.793 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004553/0.3421, allocations: 188 kB / 404.1 MB, free: 3.695 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.618e-06/0.3421, allocations: 2.281 kB / 404.1 MB, free: 3.695 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.476e-06/0.3421, allocations: 1.125 kB / 404.1 MB, free: 3.695 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.157e-06/0.3421, allocations: 3.516 kB / 404.1 MB, free: 3.695 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009982/0.3431, allocations: 0.5609 MB / 404.7 MB, free: 3.281 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.276e-06/0.3431, allocations: 0 / 404.7 MB, free: 3.281 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.541e-05/0.3432, allocations: 17.97 kB / 404.7 MB, free: 3.277 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.267e-06/0.3433, allocations: 8.969 kB / 404.7 MB, free: 3.27 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.416e-05/0.3433, allocations: 7.047 kB / 404.7 MB, free: 3.266 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.732e-06/0.3433, allocations: 5.062 kB / 404.7 MB, free: 3.262 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.066e-06/0.3433, allocations: 0 / 404.7 MB, free: 3.262 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004405/0.3437, allocations: 273.6 kB / 405 MB, free: 3.078 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.78e-05/0.3438, allocations: 21.45 kB / 405 MB, free: 3.062 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.388e-05/0.3438, allocations: 11.17 kB / 405 MB, free: 3.055 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.066e-05/0.3439, allocations: 15.8 kB / 405 MB, free: 3.043 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001202/0.344, allocations: 23.91 kB / 405.1 MB, free: 3.039 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.087e-05/0.344, allocations: 5.688 kB / 405.1 MB, free: 3.039 MB / 318.1 MB Notification: Performance of sorting global known variables: time 8.381e-05/0.3441, allocations: 102.5 kB / 405.2 MB, free: 2.953 MB / 318.1 MB Notification: Performance of sort global known variables: time 6e-08/0.3441, allocations: 0 / 405.2 MB, free: 2.953 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0004817/0.3446, allocations: 54.23 kB / 405.2 MB, free: 2.938 MB / 318.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: 19 (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: 2 (initialStep.newActive,step.newActive) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (25): * Single equations (assignments): 21 * 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.0007439/0.3453, allocations: 0.8146 MB / 406 MB, free: 2.215 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0004829/0.3458, allocations: 175.5 kB / 406.2 MB, free: 2.16 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.975e-06/0.3458, allocations: 0 / 406.2 MB, free: 2.16 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001456/0.346, allocations: 70.86 kB / 406.3 MB, free: 2.141 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003374/0.3463, allocations: 22.08 kB / 406.3 MB, free: 2.129 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002779/0.3491, allocations: 2.066 MB / 408.4 MB, free: 484 kB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000407/0.3495, allocations: 0.7413 MB / 409.1 MB, free: 15.77 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001251/0.3496, allocations: 28.75 kB / 409.1 MB, free: 15.76 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001415/0.3498, allocations: 64.41 kB / 409.2 MB, free: 15.71 MB / 334.1 MB Notification: Performance of SimCode: time 9.61e-07/0.3498, allocations: 0 / 409.2 MB, free: 15.71 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03491/0.3847, allocations: 3.994 MB / 413.2 MB, free: 14.19 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.73/12.11, allocations: 6.281 kB / 413.2 MB, free: 14.19 MB / 334.1 MB " [Timeout remaining time 648] (rm -f Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; mkfifo Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe >> ../files/Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2_res.csv --start-time 0 --stop-time 5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.000998203 Modelica_3_2_3_Modelica_StateGraph_Examples_FirstExample_Variant2.fmu > Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/StateGraph/Examples/FirstExample_Variant2/FirstExample_Variant2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_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_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2_res.csv. Warning: Get data of variable transition1.enableFire from file Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2_res.csv failed! Error: Could not read variable transition2.enableFire in file Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2_res.csv. Warning: Get data of variable transition2.enableFire from file Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 14.698094510000374]