Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HanserModelica_HanserModelica.FirstSteps.Electrical1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo", uses=false) Using package HanserModelica with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(HanserModelica.FirstSteps.Electrical1,fileNamePrefix="HanserModelica_HanserModelica_FirstSteps_Electrical1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.FirstSteps.Electrical1,fileNamePrefix="HanserModelica_HanserModelica_FirstSteps_Electrical1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001678/0.001678, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.416/1.416, allocations: 222.9 MB / 239.2 MB, free: 4.594 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00149/0.00149, allocations: 192.5 kB / 289.6 MB, free: 2.305 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.0543/0.0543, allocations: 8.801 MB / 348.5 MB, free: 4.711 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001904/0.001904, allocations: 80.27 kB / 411.2 MB, free: 42.02 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08471/0.08664, allocations: 51.56 MB / 462.7 MB, free: 14.28 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.FirstSteps.Electrical1): time 0.001775/0.08844, allocations: 0.4911 MB / 463.2 MB, free: 13.78 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001206/0.08859, allocations: 19.91 kB / 463.3 MB, free: 13.76 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.223e-05/0.08862, allocations: 0 / 463.3 MB, free: 13.76 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 1.069e-05/0.08864, allocations: 0 / 463.3 MB, free: 13.76 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 2.736e-05/0.08869, allocations: 0 / 463.3 MB, free: 13.76 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001092/0.0888, allocations: 7.922 kB / 463.3 MB, free: 13.75 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 4.541e-05/0.08885, allocations: 8 kB / 463.3 MB, free: 13.74 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.662e-05/0.0889, allocations: 0 / 463.3 MB, free: 13.74 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.149e-05/0.08893, allocations: 15.92 kB / 463.3 MB, free: 13.73 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.487e-05/0.08898, allocations: 3.984 kB / 463.3 MB, free: 13.72 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.287e-05/0.089, allocations: 4 kB / 463.3 MB, free: 13.72 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.572e-06/0.08901, allocations: 0 / 463.3 MB, free: 13.72 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 1.572e-05/0.08903, allocations: 4 kB / 463.3 MB, free: 13.71 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 2.118e-05/0.08906, allocations: 7.938 kB / 463.3 MB, free: 13.71 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 4.371e-05/0.08911, allocations: 7.922 kB / 463.3 MB, free: 13.7 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.127e-06/0.08912, allocations: 4 kB / 463.3 MB, free: 13.7 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.143e-06/0.08912, allocations: 0 / 463.3 MB, free: 13.7 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.759e-06/0.08913, allocations: 0 / 463.3 MB, free: 13.7 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3 * Number of variables: 3 Notification: Performance of Generate backend data structure: time 0.0003585/0.08949, allocations: 323.5 kB / 463.6 MB, free: 13.33 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.777e-05/0.08954, allocations: 8.031 kB / 463.6 MB, free: 13.32 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.957e-05/0.08959, allocations: 38.73 kB / 463.7 MB, free: 13.27 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.047e-05/0.08961, allocations: 0.9375 kB / 463.7 MB, free: 13.27 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001134/0.08973, allocations: 168.3 kB / 463.8 MB, free: 13.07 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.725e-06/0.08975, allocations: 384 / 463.8 MB, free: 13.07 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.8e-05/0.08977, allocations: 384 / 463.8 MB, free: 13.07 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.57e-05/0.08986, allocations: 38.25 kB / 463.9 MB, free: 13.03 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.975e-06/0.08988, allocations: 7.938 kB / 463.9 MB, free: 13.02 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.516e-06/0.08989, allocations: 3.984 kB / 463.9 MB, free: 13.02 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.818e-06/0.0899, allocations: 0 / 463.9 MB, free: 13.02 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.429e-05/0.08994, allocations: 8 kB / 463.9 MB, free: 13.01 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001522/0.0901, allocations: 158 kB / 464.1 MB, free: 12.8 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.436e-05/0.09017, allocations: 42.55 kB / 464.1 MB, free: 12.75 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.502e-05/0.0902, allocations: 8.859 kB / 464.1 MB, free: 12.74 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.478e-06/0.09022, allocations: 4 kB / 464.1 MB, free: 12.74 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.888e-05/0.09024, allocations: 30.56 kB / 464.1 MB, free: 12.7 MB / 302.1 MB Notification: Performance of pre-optimization done (n=3): time 1.212e-06/0.09024, allocations: 0 / 464.1 MB, free: 12.7 MB / 302.1 MB Notification: Performance of matching and sorting (n=3): time 0.0001343/0.09039, allocations: 57.62 kB / 464.2 MB, free: 12.64 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.74e-05/0.09043, allocations: 55.41 kB / 464.3 MB, free: 12.57 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.696e-05/0.09049, allocations: 101.8 kB / 464.4 MB, free: 12.46 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.116e-05/0.09051, allocations: 25.7 kB / 464.4 MB, free: 12.43 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.288e-05/0.09059, allocations: 84.14 kB / 464.5 MB, free: 12.34 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.786e-05/0.09062, allocations: 15.83 kB / 464.5 MB, free: 12.33 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.106e-05/0.09066, allocations: 17.66 kB / 464.5 MB, free: 12.3 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001045/0.09077, allocations: 326.8 kB / 464.8 MB, free: 11.98 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.436e-05/0.09079, allocations: 8 kB / 464.8 MB, free: 11.97 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.084e-05/0.09081, allocations: 4 kB / 464.8 MB, free: 11.96 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.655e-05/0.09085, allocations: 20.86 kB / 464.8 MB, free: 11.94 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.273e-06/0.09085, allocations: 0 / 464.8 MB, free: 11.94 MB / 302.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 7.036e-05/0.09093, allocations: 45.69 kB / 464.9 MB, free: 11.89 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.039e-05/0.09096, allocations: 7.938 kB / 464.9 MB, free: 11.88 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.641e-06/0.09097, allocations: 0 / 464.9 MB, free: 11.88 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.162e-05/0.09098, allocations: 7.938 kB / 464.9 MB, free: 11.88 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.351e-05/0.09107, allocations: 7.984 kB / 464.9 MB, free: 11.87 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.432e-06/0.09109, allocations: 8 kB / 464.9 MB, free: 11.86 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.779e-05/0.09111, allocations: 3.906 kB / 464.9 MB, free: 11.86 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.517e-06/0.09112, allocations: 0 / 464.9 MB, free: 11.86 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (4): * Single equations (assignments): 4 * 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 6.36e-05/0.09119, allocations: 114.4 kB / 465 MB, free: 11.73 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.252e-05/0.0912, allocations: 11.94 kB / 465 MB, free: 11.72 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.954e-05/0.09123, allocations: 4.016 kB / 465.1 MB, free: 11.71 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.713e-06/0.09123, allocations: 0 / 465.1 MB, free: 11.71 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.887e-06/0.09124, allocations: 0 / 465.1 MB, free: 11.71 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.054e-06/0.09125, allocations: 0 / 465.1 MB, free: 11.71 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000108/0.09136, allocations: 157.7 kB / 465.2 MB, free: 11.51 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.152e-06/0.09137, allocations: 0 / 465.2 MB, free: 11.51 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.584e-05/0.09144, allocations: 11.98 kB / 465.2 MB, free: 11.5 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.099e-06/0.09146, allocations: 7.922 kB / 465.2 MB, free: 11.49 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.933e-06/0.09147, allocations: 4 kB / 465.2 MB, free: 11.49 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.283e-06/0.09148, allocations: 0 / 465.2 MB, free: 11.49 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.51e-07/0.09148, allocations: 0 / 465.2 MB, free: 11.49 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001212/0.09161, allocations: 77.06 kB / 465.3 MB, free: 11.39 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.17e-05/0.09165, allocations: 81.02 kB / 465.4 MB, free: 11.3 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.386e-05/0.09167, allocations: 8 kB / 465.4 MB, free: 11.29 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.637e-05/0.09169, allocations: 0 / 465.4 MB, free: 11.29 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.545e-05/0.09171, allocations: 8.016 kB / 465.4 MB, free: 11.28 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.978e-06/0.09172, allocations: 4 kB / 465.4 MB, free: 11.28 MB / 302.1 MB Notification: Performance of sorting global known variables: time 3.441e-05/0.09176, allocations: 83.28 kB / 465.5 MB, free: 11.2 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.09177, allocations: 0 / 465.5 MB, free: 11.2 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0001853/0.09196, allocations: 0 / 465.5 MB, free: 11.2 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (i) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (3): * Single equations (assignments): 3 * 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 Backend phase and start with SimCode phase: time 0.000364/0.09232, allocations: 0.6163 MB / 466.1 MB, free: 10.55 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 7.487e-05/0.09241, allocations: 15.94 kB / 466.1 MB, free: 10.53 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.064e-06/0.09242, allocations: 0 / 466.1 MB, free: 10.53 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 1.298e-05/0.09244, allocations: 8 kB / 466.1 MB, free: 10.52 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001333/0.09258, allocations: 9.484 kB / 466.1 MB, free: 10.52 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008124/0.0934, allocations: 1.106 MB / 467.2 MB, free: 9.328 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002103/0.09362, allocations: 0.6846 MB / 467.9 MB, free: 8.617 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 1.488e-05/0.09364, allocations: 3.938 kB / 467.9 MB, free: 8.613 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.542e-05/0.09367, allocations: 7.438 kB / 467.9 MB, free: 8.605 MB / 302.1 MB Notification: Performance of SimCode: time 3.1e-07/0.09368, allocations: 0 / 467.9 MB, free: 8.605 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02061/0.1143, allocations: 1.058 MB / 469 MB, free: 7.598 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.494/7.609, allocations: 4 kB / 469 MB, free: 7.594 MB / 302.1 MB (rm -f HanserModelica_HanserModelica.FirstSteps.Electrical1.pipe ; mkfifo HanserModelica_HanserModelica.FirstSteps.Electrical1.pipe ; head -c 1048576 < HanserModelica_HanserModelica.FirstSteps.Electrical1.pipe >> ../files/HanserModelica_HanserModelica.FirstSteps.Electrical1.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_HanserModelica_HanserModelica_FirstSteps_Electrical1_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 HanserModelica_HanserModelica_FirstSteps_Electrical1.fmu > HanserModelica_HanserModelica.FirstSteps.Electrical1.pipe 2>&1)