Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3.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.001332/0.001332, allocations: 107.6 kB / 21.18 MB, free: 452 kB / 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.001497/0.001497, allocations: 215 kB / 24.47 MB, free: 3.777 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.453/1.453, allocations: 207.7 MB / 235.3 MB, free: 9.789 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_Variant3,fileNamePrefix="Modelica_3_2_3_Modelica_StateGraph_Examples_FirstExample_Variant3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.StateGraph.Examples.FirstExample_Variant3,fileNamePrefix="Modelica_3_2_3_Modelica_StateGraph_Examples_FirstExample_Variant3",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.002102/0.002102, allocations: 54.58 kB / 347.2 MB, free: 9.902 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3044/0.3065, allocations: 49.16 MB / 396.3 MB, free: 8.867 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant3): time 0.003294/0.3098, allocations: 1.656 MB / 398 MB, free: 7.762 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006381/0.3105, allocations: 265.6 kB / 398.2 MB, free: 7.582 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.292e-05/0.3106, allocations: 8.031 kB / 398.3 MB, free: 7.578 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001252/0.3107, allocations: 22.38 kB / 398.3 MB, free: 7.562 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 6.503e-05/0.3107, allocations: 27.61 kB / 398.3 MB, free: 7.539 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000443/0.3112, allocations: 117.7 kB / 398.4 MB, free: 7.48 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003642/0.3116, allocations: 273.7 kB / 398.7 MB, free: 7.359 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003033/0.3119, allocations: 155.5 kB / 398.8 MB, free: 7.289 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001161/0.312, allocations: 88.55 kB / 398.9 MB, free: 7.246 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001523/0.3121, allocations: 87.36 kB / 399 MB, free: 7.199 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.647e-05/0.3122, allocations: 23.34 kB / 399 MB, free: 7.199 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.236e-05/0.3123, allocations: 37.23 kB / 399.1 MB, free: 7.191 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 6.552e-05/0.3123, allocations: 59.81 kB / 399.1 MB, free: 7.152 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 9.392e-05/0.3124, allocations: 81.58 kB / 399.2 MB, free: 7.102 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003609/0.3128, allocations: 249.9 kB / 399.4 MB, free: 6.988 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.848e-06/0.3128, allocations: 1.469 kB / 399.4 MB, free: 6.988 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.994e-06/0.3128, allocations: 0 / 399.4 MB, free: 6.988 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.201e-06/0.3128, allocations: 0 / 399.4 MB, free: 6.988 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.0005906/0.3134, allocations: 418.7 kB / 399.9 MB, free: 6.633 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.762e-05/0.3134, allocations: 14.55 kB / 399.9 MB, free: 6.629 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.63e-05/0.3135, allocations: 61.62 kB / 399.9 MB, free: 6.574 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.305e-05/0.3135, allocations: 25.78 kB / 400 MB, free: 6.562 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002471/0.3138, allocations: 171.2 kB / 400.1 MB, free: 6.402 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.362e-05/0.3138, allocations: 24.88 kB / 400.1 MB, free: 6.387 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.572e-05/0.3139, allocations: 31.53 kB / 400.2 MB, free: 6.375 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004371/0.3143, allocations: 274.5 kB / 400.4 MB, free: 6.227 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.616e-05/0.3143, allocations: 3.938 kB / 400.5 MB, free: 6.223 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.33e-05/0.3143, allocations: 11.52 kB / 400.5 MB, free: 6.215 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.606e-06/0.3143, allocations: 9.781 kB / 400.5 MB, free: 6.211 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002983/0.3146, allocations: 163.9 kB / 400.6 MB, free: 6.152 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009707/0.3156, allocations: 0.874 MB / 401.5 MB, free: 5.426 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002883/0.3159, allocations: 153.5 kB / 401.7 MB, free: 5.344 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000117/0.316, allocations: 66.45 kB / 401.7 MB, free: 5.312 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.293e-05/0.316, allocations: 2.281 kB / 401.7 MB, free: 5.312 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001987/0.3162, allocations: 120.2 kB / 401.8 MB, free: 5.234 MB / 318.1 MB Notification: Performance of pre-optimization done (n=23): time 1.553e-06/0.3162, allocations: 0 / 401.8 MB, free: 5.234 MB / 318.1 MB Notification: Performance of matching and sorting (n=23): time 0.0004453/0.3167, allocations: 219.4 kB / 402.1 MB, free: 5.137 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.424e-05/0.3167, allocations: 59.7 kB / 402.1 MB, free: 5.07 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001244/0.3168, allocations: 165 kB / 402.3 MB, free: 4.934 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.468e-05/0.3169, allocations: 35.73 kB / 402.3 MB, free: 4.898 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.177e-05/0.3169, allocations: 145.5 kB / 402.4 MB, free: 4.77 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.235e-05/0.317, allocations: 56.52 kB / 402.5 MB, free: 4.727 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001129/0.3171, allocations: 79.77 kB / 402.6 MB, free: 4.68 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 5.531e-05/0.3172, allocations: 333.8 kB / 402.9 MB, free: 4.355 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001087/0.3173, allocations: 61.41 kB / 403 MB, free: 4.336 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001316/0.3174, allocations: 136.9 kB / 403.1 MB, free: 4.23 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000218/0.3176, allocations: 186.7 kB / 403.3 MB, free: 4.09 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.236e-06/0.3176, allocations: 1.5 kB / 403.3 MB, free: 4.09 MB / 318.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0003513/0.318, allocations: 261.1 kB / 403.5 MB, free: 3.965 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.421e-05/0.318, allocations: 5.656 kB / 403.5 MB, free: 3.965 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.682e-06/0.318, allocations: 2.469 kB / 403.5 MB, free: 3.965 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.692e-05/0.318, allocations: 3.719 kB / 403.6 MB, free: 3.965 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001311/0.3181, allocations: 30.58 kB / 403.6 MB, free: 3.961 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.998e-06/0.3181, allocations: 7.688 kB / 403.6 MB, free: 3.961 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.531e-05/0.3182, allocations: 27.38 kB / 403.6 MB, free: 3.941 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.816e-05/0.3183, allocations: 14.22 kB / 403.6 MB, free: 3.938 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.0001053/0.3184, allocations: 170.4 kB / 403.8 MB, free: 3.785 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.156e-05/0.3184, allocations: 13.38 kB / 403.8 MB, free: 3.777 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003094/0.3187, allocations: 190.3 kB / 404 MB, free: 3.688 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.098e-06/0.3187, allocations: 2.531 kB / 404 MB, free: 3.688 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.069e-06/0.3187, allocations: 1.375 kB / 404 MB, free: 3.688 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.859e-06/0.3187, allocations: 1.453 kB / 404 MB, free: 3.688 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006057/0.3193, allocations: 0.5441 MB / 404.5 MB, free: 3.281 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.853e-06/0.3193, allocations: 1.219 kB / 404.5 MB, free: 3.281 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.332e-05/0.3194, allocations: 18.28 kB / 404.6 MB, free: 3.277 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.516e-06/0.3194, allocations: 7.938 kB / 404.6 MB, free: 3.27 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.544e-05/0.3194, allocations: 6.891 kB / 404.6 MB, free: 3.266 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.816e-06/0.3194, allocations: 5 kB / 404.6 MB, free: 3.262 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.563e-06/0.3194, allocations: 4.562 kB / 404.6 MB, free: 3.258 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002769/0.3197, allocations: 272 kB / 404.9 MB, free: 3.078 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.7e-05/0.3197, allocations: 21.45 kB / 404.9 MB, free: 3.062 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.544e-05/0.3197, allocations: 7.234 kB / 404.9 MB, free: 3.059 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.809e-05/0.3198, allocations: 8.266 kB / 404.9 MB, free: 3.055 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.872e-05/0.3199, allocations: 16.7 kB / 404.9 MB, free: 3.055 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.568e-05/0.3199, allocations: 10.88 kB / 404.9 MB, free: 3.051 MB / 318.1 MB Notification: Performance of sorting global known variables: time 4.09e-05/0.32, allocations: 99.98 kB / 405 MB, free: 2.969 MB / 318.1 MB Notification: Performance of sort global known variables: time 9e-08/0.32, allocations: 0 / 405 MB, free: 2.969 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002856/0.3202, allocations: 55.28 kB / 405.1 MB, free: 2.949 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,transition1.enableFire,step.active,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.0004425/0.3207, allocations: 0.8201 MB / 405.9 MB, free: 2.227 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0002955/0.321, allocations: 165.8 kB / 406.1 MB, free: 2.18 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.615e-06/0.321, allocations: 1.219 kB / 406.1 MB, free: 2.18 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001162/0.3211, allocations: 69.03 kB / 406.1 MB, free: 2.16 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002675/0.3214, allocations: 24.95 kB / 406.1 MB, free: 2.148 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001829/0.3232, allocations: 2.061 MB / 408.2 MB, free: 500 kB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001128/0.3233, allocations: 125.8 kB / 408.3 MB, free: 420 kB / 318.1 MB Notification: Performance of simCode: alias equations: time 8.21e-05/0.3234, allocations: 25.61 kB / 408.4 MB, free: 412 kB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.652e-05/0.3235, allocations: 63.98 kB / 408.4 MB, free: 372 kB / 318.1 MB Notification: Performance of SimCode: time 3.5e-07/0.3235, allocations: 0 / 408.4 MB, free: 372 kB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03237/0.3559, allocations: 4.335 MB / 412.8 MB, free: 14.45 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.52/10.88, allocations: 9.094 kB / 412.8 MB, free: 14.44 MB / 334.1 MB " [Timeout remaining time 649] (rm -f Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; mkfifo Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe >> ../files/Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_StateGraph_Examples_FirstExample_Variant3_fmu --startTime=0 --stopTime=5 --stepSize=0.000998203 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_StateGraph_Examples_FirstExample_Variant3.fmu > Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/StateGraph/Examples/FirstExample_Variant3/FirstExample_Variant3.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 13.276482937857509]