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.001541/0.001541, allocations: 112.5 kB / 20.43 MB, free: 1.453 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.001847/0.001847, allocations: 212.3 kB / 23.74 MB, free: 4.66 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.423/1.423, allocations: 230.5 MB / 257.4 MB, free: 7.996 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.001842/0.001842, allocations: 67.89 kB / 377.8 MB, free: 3.02 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2845/0.2864, allocations: 53.4 MB / 431.2 MB, free: 6.684 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample): time 0.003027/0.2894, allocations: 1.51 MB / 432.7 MB, free: 5.168 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007842/0.2902, allocations: 275.2 kB / 432.9 MB, free: 4.898 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001557/0.2904, allocations: 7.938 kB / 432.9 MB, free: 4.891 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001622/0.2905, allocations: 23.73 kB / 433 MB, free: 4.867 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 6.752e-05/0.2906, allocations: 27.73 kB / 433 MB, free: 4.84 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004631/0.291, allocations: 115.8 kB / 433.1 MB, free: 4.727 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003447/0.2914, allocations: 267.5 kB / 433.4 MB, free: 4.465 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002647/0.2917, allocations: 142.5 kB / 433.5 MB, free: 4.32 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001169/0.2918, allocations: 87.77 kB / 433.6 MB, free: 4.234 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001525/0.2919, allocations: 95.55 kB / 433.7 MB, free: 4.141 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.439e-05/0.292, allocations: 20 kB / 433.7 MB, free: 4.121 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.783e-05/0.292, allocations: 32 kB / 433.7 MB, free: 4.09 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.53e-05/0.2921, allocations: 55.88 kB / 433.8 MB, free: 4.035 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001072/0.2922, allocations: 95.53 kB / 433.9 MB, free: 3.941 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000315/0.2925, allocations: 247.3 kB / 434.1 MB, free: 3.703 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.878e-06/0.2925, allocations: 3.938 kB / 434.1 MB, free: 3.699 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.2925, allocations: 0 / 434.1 MB, free: 3.699 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.872e-06/0.2925, allocations: 0 / 434.1 MB, free: 3.699 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.0006689/0.2932, allocations: 405.1 kB / 434.5 MB, free: 3.273 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.753e-05/0.2932, allocations: 12.03 kB / 434.5 MB, free: 3.262 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.744e-05/0.2933, allocations: 62.72 kB / 434.6 MB, free: 3.191 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002611/0.2936, allocations: 24.83 kB / 434.6 MB, free: 3.168 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003158/0.2939, allocations: 178.2 kB / 434.8 MB, free: 2.969 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.059e-05/0.2939, allocations: 28.88 kB / 434.8 MB, free: 2.941 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.841e-05/0.294, allocations: 24.38 kB / 434.8 MB, free: 2.918 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004462/0.2944, allocations: 239.2 kB / 435.1 MB, free: 2.672 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.524e-05/0.2944, allocations: 3.938 kB / 435.1 MB, free: 2.668 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.379e-05/0.2944, allocations: 12 kB / 435.1 MB, free: 2.656 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.945e-06/0.2945, allocations: 8 kB / 435.1 MB, free: 2.648 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000287/0.2947, allocations: 153.7 kB / 435.3 MB, free: 2.496 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009915/0.2957, allocations: 0.6627 MB / 435.9 MB, free: 1.789 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002889/0.296, allocations: 158.4 kB / 436.1 MB, free: 1.629 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000115/0.2961, allocations: 68.83 kB / 436.1 MB, free: 1.559 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.463e-05/0.2962, allocations: 3.938 kB / 436.1 MB, free: 1.555 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000191/0.2963, allocations: 118.3 kB / 436.3 MB, free: 1.43 MB / 334.1 MB Notification: Performance of pre-optimization done (n=24): time 1.402e-06/0.2963, allocations: 0 / 436.3 MB, free: 1.43 MB / 334.1 MB Notification: Performance of matching and sorting (n=24): time 0.0004742/0.2968, allocations: 213.4 kB / 436.5 MB, free: 1.215 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.989e-05/0.2969, allocations: 55.41 kB / 436.5 MB, free: 1.148 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001489/0.297, allocations: 157.6 kB / 436.7 MB, free: 0.9883 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.523e-05/0.2971, allocations: 37.7 kB / 436.7 MB, free: 0.9453 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000118/0.2972, allocations: 128.8 kB / 436.8 MB, free: 0.8125 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.096e-05/0.2973, allocations: 67.53 kB / 436.9 MB, free: 0.7461 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001036/0.2974, allocations: 74 kB / 437 MB, free: 0.6641 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001727/0.2975, allocations: 326.8 kB / 437.3 MB, free: 344 kB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001298/0.2977, allocations: 64.56 kB / 437.4 MB, free: 280 kB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001658/0.2978, allocations: 132.1 kB / 437.5 MB, free: 124 kB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002536/0.2981, allocations: 174.7 kB / 437.7 MB, free: 15.92 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.094e-06/0.2981, allocations: 0 / 437.7 MB, free: 15.92 MB / 350.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0003523/0.2984, allocations: 237.4 kB / 437.9 MB, free: 15.68 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.918e-05/0.2985, allocations: 14.58 kB / 437.9 MB, free: 15.67 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.544e-06/0.2985, allocations: 7.938 kB / 437.9 MB, free: 15.66 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.006e-05/0.2985, allocations: 8.219 kB / 437.9 MB, free: 15.66 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001242/0.2986, allocations: 27.92 kB / 437.9 MB, free: 15.63 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.827e-06/0.2986, allocations: 7.938 kB / 438 MB, free: 15.62 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.03e-05/0.2987, allocations: 27.78 kB / 438 MB, free: 15.59 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.889e-05/0.2987, allocations: 12 kB / 438 MB, free: 15.58 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.0001548/0.2989, allocations: 157.7 kB / 438.1 MB, free: 15.42 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.078e-05/0.2989, allocations: 7.953 kB / 438.2 MB, free: 15.41 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.835e-05/0.2989, allocations: 20.94 kB / 438.2 MB, free: 15.39 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.044e-06/0.299, allocations: 4 kB / 438.2 MB, free: 15.38 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.659e-06/0.299, allocations: 0 / 438.2 MB, free: 15.38 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.335e-06/0.299, allocations: 3.984 kB / 438.2 MB, free: 15.38 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006782/0.2996, allocations: 0.5215 MB / 438.7 MB, free: 14.81 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.743e-06/0.2996, allocations: 0 / 438.7 MB, free: 14.81 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.441e-05/0.2997, allocations: 23.92 kB / 438.7 MB, free: 14.79 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.5e-06/0.2997, allocations: 4 kB / 438.7 MB, free: 14.79 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.215e-05/0.2997, allocations: 0 / 438.7 MB, free: 14.79 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.804e-06/0.2997, allocations: 0 / 438.7 MB, free: 14.79 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.987e-06/0.2997, allocations: 8 kB / 438.7 MB, free: 14.78 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003092/0.3001, allocations: 271.9 kB / 439 MB, free: 14.5 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.674e-05/0.3001, allocations: 11.89 kB / 439 MB, free: 14.48 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.641e-05/0.3001, allocations: 8 kB / 439 MB, free: 14.48 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.441e-05/0.3002, allocations: 11.98 kB / 439 MB, free: 14.46 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.25e-05/0.3003, allocations: 23.91 kB / 439.1 MB, free: 14.44 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.023e-05/0.3003, allocations: 4 kB / 439.1 MB, free: 14.44 MB / 350.1 MB Notification: Performance of sorting global known variables: time 6.44e-05/0.3003, allocations: 95.27 kB / 439.2 MB, free: 14.34 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3003, allocations: 4 kB / 439.2 MB, free: 14.34 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002854/0.3006, allocations: 47.84 kB / 439.2 MB, free: 14.29 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.0006284/0.3012, allocations: 0.7982 MB / 440 MB, free: 13.47 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003214/0.3016, allocations: 164.6 kB / 440.2 MB, free: 13.31 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.683e-06/0.3016, allocations: 3.938 kB / 440.2 MB, free: 13.3 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001239/0.3017, allocations: 75.62 kB / 440.2 MB, free: 13.23 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000276/0.302, allocations: 23.94 kB / 440.3 MB, free: 13.21 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002232/0.3042, allocations: 1.999 MB / 442.3 MB, free: 11.09 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003572/0.3046, allocations: 0.7245 MB / 443 MB, free: 10.34 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 7.15e-05/0.3046, allocations: 25.89 kB / 443 MB, free: 10.31 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001093/0.3047, allocations: 59.41 kB / 443.1 MB, free: 10.25 MB / 350.1 MB Notification: Performance of SimCode: time 4.41e-07/0.3047, allocations: 0 / 443.1 MB, free: 10.25 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03092/0.3357, allocations: 3.662 MB / 446.7 MB, free: 6.699 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.62/10.96, allocations: 0 / 446.7 MB, free: 6.699 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.363109675934538]