Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.StateGraph.Examples.FirstExample.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.001368/0.001368, 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.001516/0.001516, allocations: 213.6 kB / 23.73 MB, free: 4.164 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.473/1.473, allocations: 230.5 MB / 257.4 MB, free: 7.777 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,fileNamePrefix="Modelica_trunk_Modelica_StateGraph_Examples_FirstExample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.StateGraph.Examples.FirstExample,fileNamePrefix="Modelica_trunk_Modelica_StateGraph_Examples_FirstExample",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001919/0.001919, allocations: 63.91 kB / 377.7 MB, free: 2.84 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2924/0.2943, allocations: 53.41 MB / 431.1 MB, free: 6.449 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample): time 0.00275/0.2971, allocations: 1.479 MB / 432.6 MB, free: 4.965 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006739/0.2978, allocations: 279.2 kB / 432.9 MB, free: 4.691 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.648e-05/0.2979, allocations: 4 kB / 432.9 MB, free: 4.688 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001229/0.298, allocations: 31.67 kB / 432.9 MB, free: 4.656 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 4.259e-05/0.298, allocations: 11.81 kB / 432.9 MB, free: 4.645 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003641/0.2984, allocations: 119.8 kB / 433 MB, free: 4.527 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003164/0.2987, allocations: 263.4 kB / 433.3 MB, free: 4.27 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002421/0.2989, allocations: 142.7 kB / 433.4 MB, free: 4.125 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001024/0.299, allocations: 83.77 kB / 433.5 MB, free: 4.043 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001291/0.2992, allocations: 83.53 kB / 433.6 MB, free: 3.961 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.777e-05/0.2992, allocations: 24 kB / 433.6 MB, free: 3.938 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.384e-05/0.2993, allocations: 31.94 kB / 433.6 MB, free: 3.906 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.02e-05/0.2993, allocations: 51.83 kB / 433.7 MB, free: 3.855 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 9.176e-05/0.2994, allocations: 79.64 kB / 433.8 MB, free: 3.777 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003001/0.2997, allocations: 244.7 kB / 434 MB, free: 3.539 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.516e-06/0.2997, allocations: 8 kB / 434 MB, free: 3.531 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.923e-06/0.2997, allocations: 0 / 434 MB, free: 3.531 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.001e-06/0.2997, allocations: 0 / 434 MB, free: 3.531 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: 55 * Number of variables: 55 Notification: Performance of Generate backend data structure: time 0.0006315/0.3004, allocations: 409 kB / 434.4 MB, free: 3.102 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.151e-05/0.3004, allocations: 15.98 kB / 434.4 MB, free: 3.086 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.955e-05/0.3005, allocations: 58.67 kB / 434.5 MB, free: 3.02 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000192/0.3007, allocations: 28.83 kB / 434.5 MB, free: 2.992 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000275/0.3009, allocations: 170.2 kB / 434.7 MB, free: 2.801 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.82e-05/0.301, allocations: 20.88 kB / 434.7 MB, free: 2.781 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.984e-05/0.301, allocations: 32.36 kB / 434.7 MB, free: 2.75 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004072/0.3014, allocations: 235.2 kB / 435 MB, free: 2.508 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.443e-05/0.3014, allocations: 7.922 kB / 435 MB, free: 2.5 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.152e-05/0.3015, allocations: 8 kB / 435 MB, free: 2.492 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.297e-06/0.3015, allocations: 8 kB / 435 MB, free: 2.484 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002923/0.3018, allocations: 157.6 kB / 435.1 MB, free: 2.328 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009442/0.3027, allocations: 0.6082 MB / 435.8 MB, free: 1.676 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002865/0.303, allocations: 153.8 kB / 435.9 MB, free: 1.52 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000117/0.3031, allocations: 72.83 kB / 436 MB, free: 1.445 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.271e-05/0.3031, allocations: 7.938 kB / 436 MB, free: 1.438 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001995/0.3033, allocations: 114.4 kB / 436.1 MB, free: 1.316 MB / 334.1 MB Notification: Performance of pre-optimization done (n=24): time 1.542e-06/0.3033, allocations: 0 / 436.1 MB, free: 1.316 MB / 334.1 MB Notification: Performance of matching and sorting (n=24): time 0.0004264/0.3038, allocations: 217.3 kB / 436.3 MB, free: 1.098 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.36e-05/0.3038, allocations: 67.33 kB / 436.4 MB, free: 1.02 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001306/0.304, allocations: 150 kB / 436.5 MB, free: 0.8633 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.394e-05/0.304, allocations: 37.7 kB / 436.6 MB, free: 0.8203 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.939e-05/0.3041, allocations: 128.8 kB / 436.7 MB, free: 0.6875 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.457e-05/0.3042, allocations: 67.48 kB / 436.7 MB, free: 0.6211 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.597e-05/0.3042, allocations: 74 kB / 436.8 MB, free: 0.5391 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001472/0.3044, allocations: 326.8 kB / 437.1 MB, free: 216 kB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001127/0.3045, allocations: 64.62 kB / 437.2 MB, free: 152 kB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000159/0.3047, allocations: 128.1 kB / 437.3 MB, free: 0 / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000256/0.3049, allocations: 170.6 kB / 437.5 MB, free: 15.81 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.234e-06/0.3049, allocations: 0 / 437.5 MB, free: 15.81 MB / 350.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.000361/0.3053, allocations: 245.3 kB / 437.7 MB, free: 15.56 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.756e-05/0.3053, allocations: 8 kB / 437.7 MB, free: 15.55 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.097e-06/0.3053, allocations: 3.984 kB / 437.7 MB, free: 15.55 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.655e-05/0.3053, allocations: 4 kB / 437.7 MB, free: 15.55 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001271/0.3055, allocations: 31.92 kB / 437.8 MB, free: 15.52 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.446e-06/0.3055, allocations: 4 kB / 437.8 MB, free: 15.51 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.095e-05/0.3056, allocations: 23.84 kB / 437.8 MB, free: 15.49 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.015e-05/0.3056, allocations: 12 kB / 437.8 MB, free: 15.48 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 31 ($PRE.transition1.enableFire,$PRE.transition2.enableFire,stateGraphRoot.activeSteps,transition2.t_start,$PRE.transition2.t_start,transition2.fire,transition2.enableFire,step.oldActive,$PRE.step.oldActive,step.newActive,$PRE.step.newActive,step.localActive,$PRE.step.localActive,step.active,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,transition2.condition,transition1.condition) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (39): * Single equations (assignments): 39 * 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.0001473/0.3057, allocations: 161.9 kB / 438 MB, free: 15.31 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.231e-05/0.3057, allocations: 15.91 kB / 438 MB, free: 15.29 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.927e-05/0.3058, allocations: 16.94 kB / 438 MB, free: 15.27 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.498e-06/0.3058, allocations: 4 kB / 438 MB, free: 15.27 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.468e-06/0.3058, allocations: 0 / 438 MB, free: 15.27 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.75e-06/0.3058, allocations: 3.984 kB / 438 MB, free: 15.27 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006808/0.3065, allocations: 0.506 MB / 438.5 MB, free: 14.71 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.984e-06/0.3065, allocations: 0 / 438.5 MB, free: 14.71 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.402e-05/0.3066, allocations: 27.92 kB / 438.5 MB, free: 14.68 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.385e-06/0.3066, allocations: 8 kB / 438.6 MB, free: 14.68 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.168e-05/0.3066, allocations: 0 / 438.6 MB, free: 14.68 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.633e-06/0.3066, allocations: 0 / 438.6 MB, free: 14.68 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.861e-06/0.3066, allocations: 4 kB / 438.6 MB, free: 14.67 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003042/0.3069, allocations: 275.8 kB / 438.8 MB, free: 14.39 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.134e-05/0.3069, allocations: 19.84 kB / 438.8 MB, free: 14.37 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.329e-05/0.3069, allocations: 4 kB / 438.9 MB, free: 14.36 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.244e-05/0.307, allocations: 8 kB / 438.9 MB, free: 14.36 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.079e-05/0.3071, allocations: 31.83 kB / 438.9 MB, free: 14.32 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.101e-05/0.3071, allocations: 4 kB / 438.9 MB, free: 14.32 MB / 350.1 MB Notification: Performance of sorting global known variables: time 6.194e-05/0.3072, allocations: 99.27 kB / 439 MB, free: 14.22 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3072, allocations: 0 / 439 MB, free: 14.22 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002836/0.3074, allocations: 47.89 kB / 439 MB, free: 14.18 MB / 350.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: 17 (transition2.enableFire,step.active,transition1.enableFire,initialStep.active,$whenCondition2,$whenCondition1,initialStep.localActive,initialStep.newActive,initialStep.oldActive,transition1.fire,transition1.t_start,step.localActive,step.newActive,step.oldActive,transition2.fire,transition2.t_start,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 (24): * Single equations (assignments): 20 * 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.0006077/0.3081, allocations: 0.7982 MB / 439.8 MB, free: 13.35 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003018/0.3084, allocations: 156.4 kB / 440 MB, free: 13.2 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.723e-06/0.3084, allocations: 4 kB / 440 MB, free: 13.2 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001222/0.3085, allocations: 79.62 kB / 440.1 MB, free: 13.12 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002715/0.3088, allocations: 24.36 kB / 440.1 MB, free: 13.09 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002106/0.3109, allocations: 1.99 MB / 442.1 MB, free: 10.98 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001212/0.311, allocations: 116.5 kB / 442.2 MB, free: 10.84 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 7.181e-05/0.3111, allocations: 21.95 kB / 442.2 MB, free: 10.82 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001143/0.3112, allocations: 63.39 kB / 442.3 MB, free: 10.76 MB / 350.1 MB Notification: Performance of SimCode: time 2.9e-07/0.3112, allocations: 0 / 442.3 MB, free: 10.76 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03228/0.3434, allocations: 4.052 MB / 446.3 MB, free: 6.832 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.76/11.1, allocations: 7.656 kB / 446.3 MB, free: 6.828 MB / 350.1 MB " [Timeout remaining time 649] (rm -f Modelica_trunk_Modelica.StateGraph.Examples.FirstExample.pipe ; mkfifo Modelica_trunk_Modelica.StateGraph.Examples.FirstExample.pipe ; head -c 1048576 < Modelica_trunk_Modelica.StateGraph.Examples.FirstExample.pipe >> ../files/Modelica_trunk_Modelica.StateGraph.Examples.FirstExample.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_res.mat --tempDir=temp_Modelica_trunk_Modelica_StateGraph_Examples_FirstExample_fmu --startTime=0 --stopTime=5.5 --stepSize=0.00109737 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_StateGraph_Examples_FirstExample.fmu > Modelica_trunk_Modelica.StateGraph.Examples.FirstExample.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/StateGraph/Examples/FirstExample/FirstExample.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.StateGraph.Examples.FirstExample.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.582834037020802]