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.001084/0.001084, allocations: 118.8 kB / 17.79 MB, free: 5.262 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001261/0.001261, allocations: 202 kB / 18.73 MB, free: 4.32 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.36/1.36, allocations: 227.4 MB / 246.9 MB, free: 10.46 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001168/0.001169, allocations: 63.89 kB / 358.2 MB, free: 13.44 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2787/0.2799, allocations: 50.55 MB / 408.7 MB, free: 1.543 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample): time 0.002605/0.2825, allocations: 1.493 MB / 410.2 MB, free: 48 kB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006903/0.2832, allocations: 275.2 kB / 410.5 MB, free: 15.78 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001217/0.2834, allocations: 7.938 kB / 410.5 MB, free: 15.77 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001574/0.2835, allocations: 27.73 kB / 410.5 MB, free: 15.74 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 4.89e-05/0.2836, allocations: 11.81 kB / 410.5 MB, free: 15.73 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004147/0.284, allocations: 111.8 kB / 410.7 MB, free: 15.62 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003798/0.2844, allocations: 255.6 kB / 410.9 MB, free: 15.37 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003501/0.2848, allocations: 174.3 kB / 411.1 MB, free: 15.2 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000107/0.2849, allocations: 83.77 kB / 411.2 MB, free: 15.11 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001625/0.2851, allocations: 99.53 kB / 411.2 MB, free: 15.01 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.146e-05/0.2851, allocations: 23.94 kB / 411.3 MB, free: 14.99 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.518e-05/0.2852, allocations: 27.98 kB / 411.3 MB, free: 14.96 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.826e-05/0.2853, allocations: 55.91 kB / 411.4 MB, free: 14.91 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001107/0.2854, allocations: 95.52 kB / 411.4 MB, free: 14.81 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003112/0.2857, allocations: 243.1 kB / 411.7 MB, free: 14.57 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.298e-06/0.2857, allocations: 0 / 411.7 MB, free: 14.57 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.004e-06/0.2857, allocations: 0 / 411.7 MB, free: 14.57 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.177e-05/0.2857, 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.0007101/0.2865, allocations: 484.3 kB / 412.2 MB, free: 14.05 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.221e-05/0.2865, allocations: 12.03 kB / 412.2 MB, free: 14.04 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.501e-05/0.2866, allocations: 54.73 kB / 412.2 MB, free: 13.98 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002183/0.2868, allocations: 32.64 kB / 412.3 MB, free: 13.95 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002809/0.2871, allocations: 232 kB / 412.5 MB, free: 13.68 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.267e-05/0.2871, allocations: 24.88 kB / 412.5 MB, free: 13.66 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.209e-05/0.2872, allocations: 24.38 kB / 412.5 MB, free: 13.63 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003979/0.2876, allocations: 240 kB / 412.8 MB, free: 13.39 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.148e-05/0.2876, allocations: 3.938 kB / 412.8 MB, free: 13.38 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.03e-05/0.2876, allocations: 4 kB / 412.8 MB, free: 13.38 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.098e-05/0.2877, allocations: 8 kB / 412.8 MB, free: 13.37 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002743/0.2879, allocations: 161.6 kB / 412.9 MB, free: 13.21 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009307/0.2889, allocations: 0.6895 MB / 413.6 MB, free: 12.47 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002814/0.2892, allocations: 170.8 kB / 413.8 MB, free: 12.29 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001157/0.2893, allocations: 80.83 kB / 413.9 MB, free: 12.21 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.285e-05/0.2893, allocations: 7.938 kB / 413.9 MB, free: 12.2 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001912/0.2895, allocations: 115.4 kB / 414 MB, free: 12.08 MB / 334.1 MB Notification: Performance of pre-optimization done (n=24): time 1.633e-06/0.2895, allocations: 0 / 414 MB, free: 12.08 MB / 334.1 MB Notification: Performance of matching and sorting (n=24): time 0.0004/0.2899, allocations: 218.7 kB / 414.2 MB, free: 11.86 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.639e-05/0.29, allocations: 59.39 kB / 414.3 MB, free: 11.79 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001075/0.2901, allocations: 141.9 kB / 414.4 MB, free: 11.64 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.953e-05/0.2901, allocations: 41.7 kB / 414.4 MB, free: 11.59 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.042e-05/0.2902, allocations: 132.6 kB / 414.6 MB, free: 11.46 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.136e-05/0.2903, allocations: 59.2 kB / 414.6 MB, free: 11.4 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001522/0.2905, allocations: 77.92 kB / 414.7 MB, free: 11.32 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001162/0.2906, allocations: 322.8 kB / 415 MB, free: 10.99 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001092/0.2907, allocations: 64.62 kB / 415.1 MB, free: 10.93 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001402/0.2908, allocations: 132.1 kB / 415.2 MB, free: 10.78 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002245/0.2911, allocations: 182.6 kB / 415.4 MB, free: 10.57 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.225e-06/0.2911, allocations: 0 / 415.4 MB, free: 10.57 MB / 334.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.000343/0.2914, allocations: 237.2 kB / 415.6 MB, free: 10.34 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.899e-05/0.2915, allocations: 8 kB / 415.6 MB, free: 10.33 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.392e-06/0.2915, allocations: 0 / 415.6 MB, free: 10.33 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.781e-05/0.2915, allocations: 4.219 kB / 415.6 MB, free: 10.32 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000126/0.2916, allocations: 39.86 kB / 415.7 MB, free: 10.29 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.675e-06/0.2917, allocations: 4 kB / 415.7 MB, free: 10.28 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.318e-05/0.2917, allocations: 23.83 kB / 415.7 MB, free: 10.26 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.652e-05/0.2918, allocations: 12 kB / 415.7 MB, free: 10.25 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.0001293/0.2919, allocations: 153.7 kB / 415.9 MB, free: 10.09 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.554e-05/0.2919, allocations: 19.8 kB / 415.9 MB, free: 10.07 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.46e-05/0.292, allocations: 24.77 kB / 415.9 MB, free: 10.04 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.108e-06/0.292, allocations: 4 kB / 415.9 MB, free: 10.04 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.389e-06/0.292, allocations: 4 kB / 415.9 MB, free: 10.04 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.526e-06/0.292, allocations: 0 / 415.9 MB, free: 10.04 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006218/0.2926, allocations: 0.5444 MB / 416.5 MB, free: 9.438 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.044e-06/0.2927, allocations: 0 / 416.5 MB, free: 9.438 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.212e-05/0.2927, allocations: 19.98 kB / 416.5 MB, free: 9.418 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.484e-06/0.2927, allocations: 0 / 416.5 MB, free: 9.418 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.403e-05/0.2928, allocations: 4 kB / 416.5 MB, free: 9.414 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.683e-06/0.2928, allocations: 0 / 416.5 MB, free: 9.414 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.283e-06/0.2928, allocations: 0 / 416.5 MB, free: 9.414 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002795/0.2931, allocations: 275.7 kB / 416.8 MB, free: 9.129 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.339e-05/0.2931, allocations: 92.94 kB / 416.8 MB, free: 9.02 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.486e-05/0.2931, allocations: 4 kB / 416.8 MB, free: 9.016 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.114e-05/0.2932, allocations: 8 kB / 416.9 MB, free: 9.008 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.349e-05/0.2933, allocations: 31.84 kB / 416.9 MB, free: 8.977 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.052e-05/0.2933, allocations: 4 kB / 416.9 MB, free: 8.973 MB / 334.1 MB Notification: Performance of sorting global known variables: time 4.79e-05/0.2934, allocations: 91.27 kB / 417 MB, free: 8.883 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.2934, allocations: 4 kB / 417 MB, free: 8.879 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002801/0.2937, allocations: 47.84 kB / 417 MB, free: 8.832 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.0005158/0.2942, allocations: 0.8031 MB / 417.8 MB, free: 8.004 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0002884/0.2945, allocations: 176.4 kB / 418 MB, free: 7.832 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.864e-06/0.2945, allocations: 4.062 kB / 418 MB, free: 7.828 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001157/0.2946, allocations: 87.83 kB / 418.1 MB, free: 7.742 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002786/0.2949, allocations: 26.91 kB / 418.1 MB, free: 7.719 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002011/0.2969, allocations: 1.976 MB / 420.1 MB, free: 5.613 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002927/0.2972, allocations: 0.7323 MB / 420.8 MB, free: 4.855 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 7.316e-05/0.2973, allocations: 21.94 kB / 420.9 MB, free: 4.836 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.192e-05/0.2974, allocations: 59.42 kB / 420.9 MB, free: 4.777 MB / 334.1 MB Notification: Performance of SimCode: time 2.61e-07/0.2974, allocations: 3.938 kB / 420.9 MB, free: 4.773 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01845/0.3159, allocations: 3.459 MB / 424.4 MB, free: 1.379 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.636/7.952, allocations: 7.891 kB / 424.4 MB, free: 1.375 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