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) 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_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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001592/0.001592, allocations: 117.2 kB / 17.79 MB, free: 5.301 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001783/0.001783, allocations: 199.8 kB / 18.74 MB, free: 4.355 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.459/1.459, allocations: 227.4 MB / 247 MB, free: 10.46 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001808/0.001809, allocations: 60.09 kB / 358.2 MB, free: 13.41 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2321/0.2339, allocations: 50.56 MB / 408.8 MB, free: 1.5 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant3): time 0.003119/0.2371, allocations: 1.708 MB / 410.5 MB, free: 15.79 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007166/0.2379, allocations: 295.1 kB / 410.8 MB, free: 15.5 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001047/0.238, allocations: 7.938 kB / 410.8 MB, free: 15.49 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001313/0.2381, allocations: 23.67 kB / 410.8 MB, free: 15.47 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 5.013e-05/0.2382, allocations: 15.81 kB / 410.8 MB, free: 15.45 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003612/0.2386, allocations: 119.8 kB / 411 MB, free: 15.34 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003244/0.2389, allocations: 267.6 kB / 411.2 MB, free: 15.07 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000305/0.2392, allocations: 185 kB / 411.4 MB, free: 14.89 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000101/0.2393, allocations: 87.72 kB / 411.5 MB, free: 14.81 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001429/0.2395, allocations: 103.5 kB / 411.6 MB, free: 14.71 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.561e-05/0.2395, allocations: 28 kB / 411.6 MB, free: 14.68 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.695e-05/0.2396, allocations: 28 kB / 411.6 MB, free: 14.65 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.802e-05/0.2397, allocations: 59.81 kB / 411.7 MB, free: 14.59 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001301/0.2398, allocations: 103.5 kB / 411.8 MB, free: 14.49 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003491/0.2402, allocations: 253.9 kB / 412.1 MB, free: 14.24 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.489e-06/0.2402, allocations: 0 / 412.1 MB, free: 14.24 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.433e-06/0.2402, allocations: 3.938 kB / 412.1 MB, free: 14.24 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.052e-06/0.2402, allocations: 0 / 412.1 MB, free: 14.24 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: 60 * Number of variables: 60 Notification: Performance of Generate backend data structure: time 0.0007009/0.2409, allocations: 498.4 kB / 412.5 MB, free: 13.7 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.85e-05/0.241, allocations: 16.03 kB / 412.6 MB, free: 13.68 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.501e-05/0.241, allocations: 54.73 kB / 412.6 MB, free: 13.62 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002377/0.2413, allocations: 36.78 kB / 412.7 MB, free: 13.59 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003267/0.2416, allocations: 236 kB / 412.9 MB, free: 13.32 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.554e-05/0.2417, allocations: 20.94 kB / 412.9 MB, free: 13.3 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.095e-05/0.2417, allocations: 28.38 kB / 412.9 MB, free: 13.27 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004698/0.2422, allocations: 274.6 kB / 413.2 MB, free: 12.98 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.326e-05/0.2422, allocations: 3.938 kB / 413.2 MB, free: 12.97 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.596e-05/0.2422, allocations: 12 kB / 413.2 MB, free: 12.96 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.945e-06/0.2422, allocations: 4 kB / 413.2 MB, free: 12.96 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003033/0.2426, allocations: 169.5 kB / 413.4 MB, free: 12.79 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001149/0.2437, allocations: 0.9519 MB / 414.3 MB, free: 11.78 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002875/0.244, allocations: 173.2 kB / 414.5 MB, free: 11.59 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001217/0.2441, allocations: 85.78 kB / 414.6 MB, free: 11.5 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.318e-05/0.2442, allocations: 4 kB / 414.6 MB, free: 11.5 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002186/0.2444, allocations: 133.1 kB / 414.7 MB, free: 11.35 MB / 334.1 MB Notification: Performance of pre-optimization done (n=24): time 1.463e-06/0.2444, allocations: 0 / 414.7 MB, free: 11.35 MB / 334.1 MB Notification: Performance of matching and sorting (n=24): time 0.0004259/0.2448, allocations: 214.8 kB / 414.9 MB, free: 11.13 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.134e-05/0.2449, allocations: 89.22 kB / 415 MB, free: 11.03 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001295/0.2451, allocations: 161.2 kB / 415.2 MB, free: 10.86 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.241e-05/0.2451, allocations: 37.7 kB / 415.2 MB, free: 10.82 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000105/0.2452, allocations: 140.7 kB / 415.3 MB, free: 10.68 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.756e-05/0.2453, allocations: 63.53 kB / 415.4 MB, free: 10.62 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001107/0.2454, allocations: 85.39 kB / 415.5 MB, free: 10.53 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000141/0.2455, allocations: 334.7 kB / 415.8 MB, free: 10.19 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001216/0.2457, allocations: 63.97 kB / 415.9 MB, free: 10.13 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001713/0.2458, allocations: 132.5 kB / 416 MB, free: 9.969 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002847/0.2461, allocations: 196.3 kB / 416.2 MB, free: 9.746 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.425e-06/0.2461, allocations: 0 / 416.2 MB, free: 9.746 MB / 334.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0003839/0.2465, allocations: 257.2 kB / 416.5 MB, free: 9.488 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.761e-05/0.2466, allocations: 8 kB / 416.5 MB, free: 9.48 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.313e-06/0.2466, allocations: 3.984 kB / 416.5 MB, free: 9.477 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.674e-05/0.2466, allocations: 4 kB / 416.5 MB, free: 9.473 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000143/0.2467, allocations: 39.91 kB / 416.5 MB, free: 9.434 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.298e-06/0.2468, allocations: 7.938 kB / 416.5 MB, free: 9.426 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.897e-05/0.2469, allocations: 20.17 kB / 416.5 MB, free: 9.406 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.311e-05/0.2469, allocations: 16 kB / 416.6 MB, free: 9.391 MB / 334.1 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.0001594/0.2471, allocations: 169.6 kB / 416.7 MB, free: 9.215 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.513e-05/0.2471, allocations: 15.91 kB / 416.7 MB, free: 9.199 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.725e-05/0.2472, allocations: 12.84 kB / 416.7 MB, free: 9.184 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.813e-06/0.2472, allocations: 4 kB / 416.8 MB, free: 9.18 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.17e-06/0.2472, allocations: 3.938 kB / 416.8 MB, free: 9.176 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.502e-06/0.2472, allocations: 3.984 kB / 416.8 MB, free: 9.172 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007378/0.2479, allocations: 0.586 MB / 417.3 MB, free: 8.523 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.873e-06/0.2479, allocations: 0 / 417.3 MB, free: 8.523 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.765e-05/0.248, allocations: 12 kB / 417.4 MB, free: 8.512 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.216e-06/0.248, allocations: 0 / 417.4 MB, free: 8.512 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.949e-05/0.2481, allocations: 15.92 kB / 417.4 MB, free: 8.496 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.974e-06/0.2481, allocations: 0 / 417.4 MB, free: 8.496 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.252e-06/0.2481, allocations: 0 / 417.4 MB, free: 8.496 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003177/0.2484, allocations: 276.1 kB / 417.6 MB, free: 8.207 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.538e-05/0.2485, allocations: 97.05 kB / 417.7 MB, free: 8.094 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.774e-05/0.2485, allocations: 7.938 kB / 417.7 MB, free: 8.086 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.036e-05/0.2486, allocations: 8 kB / 417.8 MB, free: 8.078 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.65e-05/0.2487, allocations: 15.97 kB / 417.8 MB, free: 8.062 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.565e-05/0.2487, allocations: 12 kB / 417.8 MB, free: 8.051 MB / 334.1 MB Notification: Performance of sorting global known variables: time 7.747e-05/0.2488, allocations: 91.27 kB / 417.9 MB, free: 7.961 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.2488, allocations: 0 / 417.9 MB, free: 7.961 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003042/0.2491, allocations: 55.84 kB / 417.9 MB, free: 7.906 MB / 334.1 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.0006638/0.2497, allocations: 0.808 MB / 418.7 MB, free: 7.07 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003729/0.2501, allocations: 188.3 kB / 418.9 MB, free: 6.887 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.275e-06/0.2502, allocations: 8.188 kB / 418.9 MB, free: 6.879 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001402/0.2503, allocations: 79.83 kB / 419 MB, free: 6.801 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002869/0.2506, allocations: 34.09 kB / 419 MB, free: 6.77 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002378/0.253, allocations: 2.059 MB / 421.1 MB, free: 4.566 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003898/0.2534, allocations: 0.7365 MB / 421.8 MB, free: 3.801 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 8.237e-05/0.2535, allocations: 21.94 kB / 421.9 MB, free: 3.773 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001156/0.2536, allocations: 59.42 kB / 421.9 MB, free: 3.715 MB / 334.1 MB Notification: Performance of SimCode: time 2.5e-07/0.2536, allocations: 0 / 421.9 MB, free: 3.715 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02498/0.2786, allocations: 3.463 MB / 425.4 MB, free: 344 kB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.217/8.496, allocations: 15.55 kB / 425.4 MB, free: 332 kB / 334.1 MB (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 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_StateGraph_Examples_FirstExample_Variant3.fmu > Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/StateGraph/Examples/FirstExample_Variant3/FirstExample_Variant3.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches