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.0008383/0.0008383, allocations: 80.34 kB / 20.67 MB, free: 3.891 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.0007916/0.0007916, allocations: 156.9 kB / 23.95 MB, free: 0.6133 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.894/0.894, allocations: 177 MB / 204.1 MB, free: 5.762 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_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 1.994e-06/1.994e-06, allocations: 0 / 324.5 MB, free: 15.93 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.997e-05/2.196e-05, allocations: 2.281 kB / 324.5 MB, free: 15.93 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant3): time 0.002334/0.002356, allocations: 1.7 MB / 326.2 MB, free: 14.21 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.000535/0.002891, allocations: 291.1 kB / 326.5 MB, free: 13.93 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.698e-05/0.002988, allocations: 7.938 kB / 326.5 MB, free: 13.92 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001248/0.003112, allocations: 31.67 kB / 326.5 MB, free: 13.89 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 4.396e-05/0.003156, allocations: 15.8 kB / 326.5 MB, free: 13.87 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000338/0.003494, allocations: 123.7 kB / 326.6 MB, free: 13.75 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002372/0.003731, allocations: 275.5 kB / 326.9 MB, free: 13.48 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002293/0.003961, allocations: 150 kB / 327.1 MB, free: 13.34 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001149/0.004076, allocations: 135.8 kB / 327.2 MB, free: 13.2 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001007/0.004176, allocations: 79.69 kB / 327.3 MB, free: 13.12 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.775e-05/0.004204, allocations: 24 kB / 327.3 MB, free: 13.1 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.135e-05/0.004256, allocations: 24 kB / 327.3 MB, free: 13.08 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 4.94e-05/0.004305, allocations: 51.83 kB / 327.4 MB, free: 13.03 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 6.28e-05/0.004368, allocations: 75.8 kB / 327.4 MB, free: 12.95 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002504/0.004618, allocations: 267 kB / 327.7 MB, free: 12.69 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.038e-06/0.004622, allocations: 7.984 kB / 327.7 MB, free: 12.68 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.343e-06/0.004624, allocations: 0 / 327.7 MB, free: 12.68 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.979e-06/0.004628, allocations: 0 / 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.0005022/0.005131, allocations: 420.9 kB / 328.1 MB, free: 12.24 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.141e-05/0.005172, allocations: 15.98 kB / 328.1 MB, free: 12.23 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.579e-05/0.005218, allocations: 58.73 kB / 328.2 MB, free: 12.16 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001361/0.005354, allocations: 32.78 kB / 328.2 MB, free: 12.13 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002459/0.0056, allocations: 165.5 kB / 328.4 MB, free: 11.94 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.113e-05/0.005631, allocations: 24.86 kB / 328.4 MB, free: 11.92 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.423e-05/0.005655, allocations: 24.38 kB / 328.4 MB, free: 11.89 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003199/0.005975, allocations: 277.8 kB / 328.7 MB, free: 11.61 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.003e-05/0.005985, allocations: 192 / 328.7 MB, free: 11.61 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.82e-05/0.006003, allocations: 12.38 kB / 328.7 MB, free: 11.59 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.057e-06/0.006012, allocations: 8.125 kB / 328.7 MB, free: 11.59 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002016/0.006214, allocations: 165.8 kB / 328.9 MB, free: 11.42 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008469/0.007061, allocations: 0.8784 MB / 329.8 MB, free: 10.48 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002059/0.007267, allocations: 149.5 kB / 329.9 MB, free: 10.32 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.7e-05/0.007344, allocations: 73.62 kB / 330 MB, free: 10.24 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.003e-05/0.007364, allocations: 11.94 kB / 330 MB, free: 10.23 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001574/0.007521, allocations: 141.7 kB / 330.1 MB, free: 10.07 MB / 298.7 MB Notification: Performance of pre-optimization done (n=24): time 1.724e-06/0.007523, allocations: 0 / 330.1 MB, free: 10.07 MB / 298.7 MB Notification: Performance of matching and sorting (n=24): time 0.0003335/0.007856, allocations: 225.2 kB / 330.4 MB, free: 9.844 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.933e-05/0.007906, allocations: 81.11 kB / 330.4 MB, free: 9.746 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.548e-05/0.008001, allocations: 153.7 kB / 330.6 MB, free: 9.586 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.119e-05/0.008022, allocations: 37.7 kB / 330.6 MB, free: 9.543 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.341e-05/0.008106, allocations: 144.7 kB / 330.8 MB, free: 9.395 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.523e-05/0.008141, allocations: 63.53 kB / 330.8 MB, free: 9.332 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.555e-05/0.008217, allocations: 77.64 kB / 330.9 MB, free: 9.25 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.899e-05/0.008306, allocations: 334.9 kB / 331.2 MB, free: 8.914 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.375e-05/0.008389, allocations: 63.97 kB / 331.3 MB, free: 8.852 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001183/0.008508, allocations: 144.5 kB / 331.4 MB, free: 8.68 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001894/0.008697, allocations: 188.5 kB / 331.6 MB, free: 8.465 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.807e-06/0.008701, allocations: 3.938 kB / 331.6 MB, free: 8.461 MB / 298.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0002566/0.008958, allocations: 249.3 kB / 331.9 MB, free: 8.211 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.004e-05/0.008978, allocations: 8 kB / 331.9 MB, free: 8.203 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.644e-06/0.008985, allocations: 0 / 331.9 MB, free: 8.203 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.709e-05/0.009002, allocations: 4 kB / 331.9 MB, free: 8.199 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001141/0.009116, allocations: 40.14 kB / 331.9 MB, free: 8.16 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.165e-06/0.009125, allocations: 8 kB / 331.9 MB, free: 8.152 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.206e-05/0.009197, allocations: 27.83 kB / 331.9 MB, free: 8.125 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.607e-05/0.009213, allocations: 12 kB / 332 MB, free: 8.113 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.0001248/0.009338, allocations: 161.6 kB / 332.1 MB, free: 7.945 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.739e-05/0.009355, allocations: 15.95 kB / 332.1 MB, free: 7.93 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.513e-05/0.00939, allocations: 16.92 kB / 332.1 MB, free: 7.914 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.038e-06/0.009394, allocations: 4 kB / 332.2 MB, free: 7.91 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.161e-06/0.0094, allocations: 0 / 332.2 MB, free: 7.91 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.777e-06/0.009404, allocations: 0 / 332.2 MB, free: 7.91 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007738/0.01018, allocations: 0.5394 MB / 332.7 MB, free: 7.312 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.745e-06/0.01018, allocations: 0 / 332.7 MB, free: 7.312 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.737e-05/0.01023, allocations: 19.92 kB / 332.7 MB, free: 7.293 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.426e-06/0.01023, allocations: 4 kB / 332.7 MB, free: 7.289 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.947e-06/0.01024, allocations: 3.938 kB / 332.7 MB, free: 7.285 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.689e-06/0.01025, allocations: 7.984 kB / 332.7 MB, free: 7.277 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.073e-06/0.01025, allocations: 0 / 332.7 MB, free: 7.277 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001916/0.01044, allocations: 288.8 kB / 333 MB, free: 6.977 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.315e-05/0.01045, allocations: 11.91 kB / 333 MB, free: 6.965 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.739e-05/0.01047, allocations: 8 kB / 333 MB, free: 6.957 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.918e-05/0.01052, allocations: 8 kB / 333 MB, free: 6.949 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.495e-05/0.01058, allocations: 23.89 kB / 333.1 MB, free: 6.926 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.518e-06/0.01059, allocations: 12 kB / 333.1 MB, free: 6.914 MB / 298.7 MB Notification: Performance of sorting global known variables: time 3.793e-05/0.01063, allocations: 98.52 kB / 333.2 MB, free: 6.82 MB / 298.7 MB Notification: Performance of sort global known variables: time 7e-08/0.01063, allocations: 0 / 333.2 MB, free: 6.82 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0001965/0.01083, allocations: 51.83 kB / 333.2 MB, free: 6.77 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,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.0003743/0.0112, allocations: 0.8107 MB / 334 MB, free: 5.93 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002193/0.01142, allocations: 175.9 kB / 334.2 MB, free: 5.758 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.814e-06/0.01142, allocations: 0 / 334.2 MB, free: 5.758 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 7.606e-05/0.0115, allocations: 71.84 kB / 334.3 MB, free: 5.688 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002404/0.01174, allocations: 27.92 kB / 334.3 MB, free: 5.66 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001748/0.01349, allocations: 2.064 MB / 336.4 MB, free: 3.449 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.903e-05/0.01359, allocations: 129.9 kB / 336.5 MB, free: 3.305 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 6.451e-05/0.01365, allocations: 21.95 kB / 336.5 MB, free: 3.285 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.358e-05/0.01374, allocations: 64.47 kB / 336.6 MB, free: 3.219 MB / 298.7 MB Notification: Performance of SimCode: time 1.523e-06/0.01374, allocations: 0 / 336.6 MB, free: 3.219 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01588/0.02963, allocations: 4.257 MB / 340.8 MB, free: 15.07 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.784/6.814, allocations: 3.938 kB / 340.8 MB, free: 15.07 MB / 314.7 MB " [Timeout remaining time 653] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3_res.mat --tempDir=temp_Modelica_trunk_Modelica_StateGraph_Examples_FirstExample_Variant3_fmu --startTime=0 --stopTime=5.5 --stepSize=0.00109737 --timeout=50 --tolerance=1e-06 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.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/StateGraph/Examples/FirstExample_Variant3/FirstExample_Variant3.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_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: 8.499446471221745]