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.0009001/0.0009001, allocations: 80.34 kB / 20.67 MB, free: 3.883 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.0008944/0.0008944, allocations: 160.9 kB / 23.95 MB, free: 0.6055 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.8643/0.8643, allocations: 177 MB / 204.1 MB, free: 5.73 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.914e-06/1.914e-06, allocations: 0 / 324.5 MB, free: 15.9 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.912e-05/2.103e-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.002142/0.002164, allocations: 1.661 MB / 326.2 MB, free: 14.22 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0005006/0.002664, allocations: 291.1 kB / 326.4 MB, free: 13.94 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.996e-05/0.002744, allocations: 7.938 kB / 326.4 MB, free: 13.93 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001116/0.002856, allocations: 31.67 kB / 326.5 MB, free: 13.9 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 3.55e-05/0.002891, allocations: 15.8 kB / 326.5 MB, free: 13.88 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003358/0.003227, allocations: 127.7 kB / 326.6 MB, free: 13.76 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002324/0.003459, allocations: 271.5 kB / 326.9 MB, free: 13.49 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002152/0.003674, allocations: 155.6 kB / 327 MB, free: 13.34 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001124/0.003787, allocations: 147.7 kB / 327.2 MB, free: 13.2 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.782e-05/0.003885, allocations: 71.77 kB / 327.2 MB, free: 13.12 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.875e-05/0.003913, allocations: 24 kB / 327.3 MB, free: 13.1 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.973e-05/0.003963, allocations: 24 kB / 327.3 MB, free: 13.08 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 5.015e-05/0.004013, allocations: 63.8 kB / 327.4 MB, free: 13.02 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 5.777e-05/0.004071, allocations: 63.83 kB / 327.4 MB, free: 12.95 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002455/0.004317, allocations: 267.1 kB / 327.7 MB, free: 12.69 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.769e-06/0.004321, allocations: 3.984 kB / 327.7 MB, free: 12.69 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.763e-06/0.004323, allocations: 0 / 327.7 MB, free: 12.69 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.44e-06/0.004329, allocations: 7.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.0004833/0.004812, allocations: 421.2 kB / 328.1 MB, free: 12.23 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.325e-05/0.004855, allocations: 11.98 kB / 328.1 MB, free: 12.22 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.822e-05/0.004903, allocations: 62.72 kB / 328.2 MB, free: 12.15 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000136/0.005039, allocations: 32.78 kB / 328.2 MB, free: 12.12 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005032/0.005543, allocations: 173.5 kB / 328.4 MB, free: 11.93 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.083e-05/0.005573, allocations: 24.88 kB / 328.4 MB, free: 11.9 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.405e-05/0.005597, allocations: 24.38 kB / 328.4 MB, free: 11.88 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000304/0.005901, allocations: 273.8 kB / 328.7 MB, free: 11.59 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.987e-06/0.00591, allocations: 192 / 328.7 MB, free: 11.59 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.641e-05/0.005927, allocations: 12.38 kB / 328.7 MB, free: 11.58 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.875e-06/0.005935, allocations: 8.125 kB / 328.7 MB, free: 11.57 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001922/0.006127, allocations: 165.9 kB / 328.9 MB, free: 11.41 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007605/0.006887, allocations: 0.8745 MB / 329.8 MB, free: 10.48 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001959/0.007083, allocations: 153.4 kB / 329.9 MB, free: 10.31 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.152e-05/0.007155, allocations: 65.78 kB / 330 MB, free: 10.24 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.913e-05/0.007174, allocations: 7.938 kB / 330 MB, free: 10.23 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001538/0.007328, allocations: 149.7 kB / 330.1 MB, free: 10.07 MB / 298.7 MB Notification: Performance of pre-optimization done (n=24): time 1.382e-06/0.007329, allocations: 4 kB / 330.1 MB, free: 10.06 MB / 298.7 MB Notification: Performance of matching and sorting (n=24): time 0.0003146/0.007644, allocations: 225.2 kB / 330.3 MB, free: 9.836 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.656e-05/0.00769, allocations: 89.09 kB / 330.4 MB, free: 9.73 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.147e-05/0.007782, allocations: 159.6 kB / 330.6 MB, free: 9.566 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.961e-05/0.007801, allocations: 37.7 kB / 330.6 MB, free: 9.523 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.922e-05/0.007871, allocations: 140.7 kB / 330.8 MB, free: 9.379 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.452e-05/0.007905, allocations: 67.53 kB / 330.8 MB, free: 9.312 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.085e-05/0.007976, allocations: 81.45 kB / 330.9 MB, free: 9.227 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.716e-05/0.008053, allocations: 322.8 kB / 331.2 MB, free: 8.902 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.708e-05/0.00813, allocations: 63.97 kB / 331.3 MB, free: 8.84 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001025/0.008233, allocations: 148.7 kB / 331.4 MB, free: 8.664 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001625/0.008395, allocations: 184.5 kB / 331.6 MB, free: 8.453 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.917e-06/0.008399, allocations: 7.875 kB / 331.6 MB, free: 8.445 MB / 298.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.000233/0.008632, allocations: 253.3 kB / 331.9 MB, free: 8.191 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.601e-05/0.008648, allocations: 8 kB / 331.9 MB, free: 8.184 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.312e-06/0.008654, allocations: 3.938 kB / 331.9 MB, free: 8.18 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.439e-05/0.008669, allocations: 4 kB / 331.9 MB, free: 8.176 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001013/0.00877, allocations: 35.92 kB / 331.9 MB, free: 8.141 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.195e-06/0.008778, allocations: 7.984 kB / 331.9 MB, free: 8.133 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.577e-05/0.008834, allocations: 28.06 kB / 331.9 MB, free: 8.105 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.183e-05/0.008846, allocations: 16 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.0001015/0.008947, allocations: 165.6 kB / 332.1 MB, free: 7.918 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.627e-05/0.008964, allocations: 19.91 kB / 332.1 MB, free: 7.898 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.851e-05/0.008992, allocations: 12.94 kB / 332.2 MB, free: 7.887 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.887e-06/0.008996, allocations: 4 kB / 332.2 MB, free: 7.883 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.709e-06/0.009001, allocations: 0 / 332.2 MB, free: 7.883 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.228e-06/0.009005, allocations: 3.984 kB / 332.2 MB, free: 7.879 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004412/0.009446, allocations: 0.5313 MB / 332.7 MB, free: 7.289 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.034e-06/0.009448, allocations: 0 / 332.7 MB, free: 7.289 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.937e-05/0.009488, allocations: 23.98 kB / 332.7 MB, free: 7.266 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.154e-06/0.00949, allocations: 0 / 332.7 MB, free: 7.266 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.867e-06/0.009499, allocations: 0 / 332.7 MB, free: 7.266 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.116e-06/0.009502, allocations: 7.938 kB / 332.7 MB, free: 7.258 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.012e-06/0.009503, allocations: 0 / 332.7 MB, free: 7.258 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000185/0.009688, allocations: 277.1 kB / 333 MB, free: 6.969 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.416e-05/0.009702, allocations: 15.84 kB / 333 MB, free: 6.953 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.688e-05/0.009719, allocations: 8 kB / 333 MB, free: 6.945 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.521e-05/0.009764, allocations: 11.98 kB / 333 MB, free: 6.934 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.317e-05/0.009817, allocations: 23.91 kB / 333.1 MB, free: 6.91 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.036e-06/0.009825, allocations: 8 kB / 333.1 MB, free: 6.902 MB / 298.7 MB Notification: Performance of sorting global known variables: time 3.803e-05/0.009863, allocations: 96.11 kB / 333.2 MB, free: 6.809 MB / 298.7 MB Notification: Performance of sort global known variables: time 5e-08/0.009863, allocations: 3.938 kB / 333.2 MB, free: 6.805 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0001976/0.01006, allocations: 55.83 kB / 333.2 MB, free: 6.75 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.0003567/0.01042, allocations: 0.8146 MB / 334 MB, free: 5.906 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002179/0.01064, allocations: 167.7 kB / 334.2 MB, free: 5.742 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.345e-06/0.01064, allocations: 0.5625 kB / 334.2 MB, free: 5.742 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 8.276e-05/0.01072, allocations: 67.92 kB / 334.3 MB, free: 5.676 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002259/0.01095, allocations: 35.91 kB / 334.3 MB, free: 5.641 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001813/0.01276, allocations: 2.087 MB / 336.4 MB, free: 3.406 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.19e-05/0.01284, allocations: 125.6 kB / 336.5 MB, free: 3.266 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 5.504e-05/0.0129, allocations: 21.89 kB / 336.5 MB, free: 3.246 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.816e-05/0.01297, allocations: 64.47 kB / 336.6 MB, free: 3.18 MB / 298.7 MB Notification: Performance of SimCode: time 9.72e-07/0.01298, allocations: 4 kB / 336.6 MB, free: 3.176 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01553/0.02851, allocations: 4.279 MB / 340.9 MB, free: 15.01 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.908/6.936, allocations: 11.03 kB / 340.9 MB, free: 15 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2_res.mat --tempDir=temp_Modelica_trunk_Modelica_StateGraph_Examples_FirstExample_Variant2_fmu --startTime=0 --stopTime=5.5 --stepSize=0.00109737 --timeout=50 --tolerance=1e-06 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.mat","/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] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 8.574876294471323]