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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) 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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001196/0.001196, allocations: 118.8 kB / 17.79 MB, free: 5.285 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00128/0.001279, allocations: 201.2 kB / 18.73 MB, free: 4.34 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.429/1.429, allocations: 227.4 MB / 246.9 MB, free: 10.47 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001338/0.001338, allocations: 60.14 kB / 358.2 MB, free: 13.46 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2603/0.2617, allocations: 50.56 MB / 408.7 MB, free: 1.531 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample): time 0.003784/0.2656, allocations: 1.485 MB / 410.2 MB, free: 44 kB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006502/0.2663, allocations: 279.1 kB / 410.5 MB, free: 15.77 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.106e-05/0.2664, allocations: 4 kB / 410.5 MB, free: 15.77 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001299/0.2665, allocations: 23.75 kB / 410.5 MB, free: 15.74 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 3.867e-05/0.2665, allocations: 15.8 kB / 410.5 MB, free: 15.73 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000369/0.2669, allocations: 115.8 kB / 410.6 MB, free: 15.61 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002954/0.2672, allocations: 255.6 kB / 410.9 MB, free: 15.36 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003355/0.2676, allocations: 174.2 kB / 411.1 MB, free: 15.19 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001467/0.2677, allocations: 83.77 kB / 411.2 MB, free: 15.11 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001955/0.2679, allocations: 99.53 kB / 411.2 MB, free: 15.01 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.131e-05/0.268, allocations: 20 kB / 411.3 MB, free: 14.99 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.356e-05/0.2681, allocations: 24 kB / 411.3 MB, free: 14.96 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.548e-05/0.2682, allocations: 55.89 kB / 411.3 MB, free: 14.91 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00013/0.2683, allocations: 95.52 kB / 411.4 MB, free: 14.82 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003615/0.2687, allocations: 247.1 kB / 411.7 MB, free: 14.57 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.194e-06/0.2687, allocations: 4 kB / 411.7 MB, free: 14.57 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.715e-06/0.2687, allocations: 0 / 411.7 MB, free: 14.57 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.245e-06/0.2687, allocations: 0 / 411.7 MB, free: 14.57 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.0008537/0.2696, allocations: 480.3 kB / 412.2 MB, free: 14.05 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.153e-05/0.2697, allocations: 11.97 kB / 412.2 MB, free: 14.04 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.221e-05/0.2697, allocations: 58.72 kB / 412.2 MB, free: 13.97 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002494/0.27, allocations: 28.66 kB / 412.2 MB, free: 13.94 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003265/0.2703, allocations: 224 kB / 412.5 MB, free: 13.68 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.536e-05/0.2704, allocations: 28.88 kB / 412.5 MB, free: 13.66 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.746e-05/0.2704, allocations: 24.38 kB / 412.5 MB, free: 13.63 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003894/0.2708, allocations: 240 kB / 412.8 MB, free: 13.39 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.372e-05/0.2708, allocations: 7.875 kB / 412.8 MB, free: 13.38 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.218e-05/0.2709, allocations: 12 kB / 412.8 MB, free: 13.37 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.488e-06/0.2709, allocations: 7.984 kB / 412.8 MB, free: 13.36 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002834/0.2712, allocations: 153.7 kB / 412.9 MB, free: 13.21 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009369/0.2721, allocations: 0.6856 MB / 413.6 MB, free: 12.47 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003016/0.2724, allocations: 170.8 kB / 413.8 MB, free: 12.29 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001098/0.2725, allocations: 76.84 kB / 413.9 MB, free: 12.21 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.462e-05/0.2726, allocations: 7.938 kB / 413.9 MB, free: 12.21 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001863/0.2728, allocations: 134.3 kB / 414 MB, free: 12.07 MB / 334.1 MB Notification: Performance of pre-optimization done (n=24): time 2.054e-06/0.2728, allocations: 0 / 414 MB, free: 12.07 MB / 334.1 MB Notification: Performance of matching and sorting (n=24): time 0.0004196/0.2732, allocations: 209.3 kB / 414.2 MB, free: 11.86 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.985e-05/0.2733, allocations: 55.41 kB / 414.3 MB, free: 11.79 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001039/0.2734, allocations: 149.9 kB / 414.4 MB, free: 11.63 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.722e-05/0.2734, allocations: 33.7 kB / 414.4 MB, free: 11.59 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.99e-05/0.2735, allocations: 128.7 kB / 414.6 MB, free: 11.46 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.209e-05/0.2735, allocations: 59.2 kB / 414.6 MB, free: 11.41 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.164e-05/0.2736, allocations: 81.92 kB / 414.7 MB, free: 11.32 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001213/0.2737, allocations: 330.8 kB / 415 MB, free: 10.98 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001098/0.2739, allocations: 60.62 kB / 415.1 MB, free: 10.93 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001345/0.274, allocations: 128 kB / 415.2 MB, free: 10.78 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000221/0.2742, allocations: 178.6 kB / 415.4 MB, free: 10.58 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.128e-06/0.2742, allocations: 8 kB / 415.4 MB, free: 10.57 MB / 334.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0003314/0.2746, allocations: 237.2 kB / 415.6 MB, free: 10.33 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.61e-05/0.2746, allocations: 8 kB / 415.6 MB, free: 10.32 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.39e-06/0.2746, allocations: 0 / 415.6 MB, free: 10.32 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.639e-05/0.2746, allocations: 4 kB / 415.6 MB, free: 10.32 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001301/0.2748, allocations: 31.86 kB / 415.7 MB, free: 10.29 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.231e-05/0.2748, allocations: 11.92 kB / 415.7 MB, free: 10.28 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.683e-05/0.2749, allocations: 28.06 kB / 415.7 MB, free: 10.25 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.678e-05/0.2749, allocations: 8 kB / 415.7 MB, free: 10.24 MB / 334.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.0001461/0.2751, allocations: 161.6 kB / 415.9 MB, free: 10.07 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.182e-05/0.2751, allocations: 15.81 kB / 415.9 MB, free: 10.06 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.218e-05/0.2752, allocations: 16.84 kB / 415.9 MB, free: 10.04 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.238e-06/0.2752, allocations: 4 kB / 415.9 MB, free: 10.04 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.885e-06/0.2752, allocations: 0 / 415.9 MB, free: 10.04 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.502e-06/0.2752, allocations: 3.984 kB / 415.9 MB, free: 10.04 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006883/0.2759, allocations: 0.5444 MB / 416.5 MB, free: 9.438 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.603e-06/0.2759, allocations: 0 / 416.5 MB, free: 9.438 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.303e-05/0.276, allocations: 15.98 kB / 416.5 MB, free: 9.422 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.264e-06/0.276, allocations: 0 / 416.5 MB, free: 9.422 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.548e-05/0.276, allocations: 8 kB / 416.5 MB, free: 9.414 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.298e-06/0.276, allocations: 7.922 kB / 416.5 MB, free: 9.406 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.82e-07/0.276, allocations: 0 / 416.5 MB, free: 9.406 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002753/0.2763, allocations: 275.8 kB / 416.8 MB, free: 9.121 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.834e-05/0.2764, allocations: 92.94 kB / 416.8 MB, free: 9.012 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.373e-05/0.2764, allocations: 4 kB / 416.8 MB, free: 9.008 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.3e-05/0.2765, allocations: 7.984 kB / 416.9 MB, free: 9 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.666e-05/0.2766, allocations: 27.91 kB / 416.9 MB, free: 8.973 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.2e-05/0.2766, allocations: 8 kB / 416.9 MB, free: 8.965 MB / 334.1 MB Notification: Performance of sorting global known variables: time 5.383e-05/0.2766, allocations: 91.27 kB / 417 MB, free: 8.875 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.2766, allocations: 4 kB / 417 MB, free: 8.871 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002791/0.2769, allocations: 43.84 kB / 417 MB, free: 8.828 MB / 334.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.0005437/0.2775, allocations: 0.807 MB / 417.8 MB, free: 7.996 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003036/0.2778, allocations: 172.1 kB / 418 MB, free: 7.828 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.164e-06/0.2778, allocations: 0 / 418 MB, free: 7.828 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001282/0.2779, allocations: 92.2 kB / 418.1 MB, free: 7.738 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000281/0.2782, allocations: 31.86 kB / 418.1 MB, free: 7.707 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00197/0.2802, allocations: 1.968 MB / 420.1 MB, free: 5.609 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002674/0.2805, allocations: 0.7361 MB / 420.8 MB, free: 4.848 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 7.181e-05/0.2806, allocations: 21.94 kB / 420.8 MB, free: 4.828 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000109/0.2807, allocations: 59.42 kB / 420.9 MB, free: 4.77 MB / 334.1 MB Notification: Performance of SimCode: time 2.5e-07/0.2807, allocations: 3.938 kB / 420.9 MB, free: 4.766 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01891/0.2996, allocations: 3.458 MB / 424.4 MB, free: 1.375 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.547/7.847, allocations: 14.2 kB / 424.4 MB, free: 1.367 MB / 334.1 MB (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 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_StateGraph_Examples_FirstExample.fmu > Modelica_trunk_Modelica.StateGraph.Examples.FirstExample.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.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) Reference file matches