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.000829/0.0008293, allocations: 97.72 kB / 15.36 MB, free: 0.7344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.327/1.327, allocations: 223.3 MB / 239.4 MB, free: 5.52 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.0009744/0.0009744, allocations: 176.5 kB / 290.6 MB, free: 2.191 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.04615/0.04615, allocations: 8.801 MB / 350.5 MB, free: 4.629 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003636/0.0003637, allocations: 11.44 kB / 413.9 MB, free: 42.77 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08933/0.08971, allocations: 52.56 MB / 466.5 MB, free: 13.08 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.FirstSteps.Electrical1): time 0.0007059/0.09046, allocations: 222.4 kB / 466.7 MB, free: 12.86 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001366/0.09062, allocations: 23.89 kB / 466.7 MB, free: 12.84 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.455e-05/0.09066, allocations: 0 / 466.7 MB, free: 12.84 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 1.453e-05/0.09068, allocations: 0 / 466.7 MB, free: 12.84 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 3.031e-05/0.09072, allocations: 0 / 466.7 MB, free: 12.84 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000116/0.09084, allocations: 3.938 kB / 466.7 MB, free: 12.83 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 4.205e-05/0.09089, allocations: 8 kB / 466.7 MB, free: 12.82 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.33e-05/0.09096, allocations: 11.98 kB / 466.7 MB, free: 12.81 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.923e-05/0.09098, allocations: 3.938 kB / 466.7 MB, free: 12.81 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.528e-05/0.09103, allocations: 4 kB / 466.8 MB, free: 12.8 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.38e-05/0.09105, allocations: 0 / 466.8 MB, free: 12.8 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.524e-06/0.09106, allocations: 0 / 466.8 MB, free: 12.8 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 1.697e-05/0.09108, allocations: 7.922 kB / 466.8 MB, free: 12.8 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 4.267e-05/0.09113, allocations: 33.7 kB / 466.8 MB, free: 12.76 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 5.28e-05/0.09119, allocations: 7.922 kB / 466.8 MB, free: 12.75 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.605e-06/0.0912, allocations: 0 / 466.8 MB, free: 12.75 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.333e-06/0.09121, allocations: 0 / 466.8 MB, free: 12.75 MB / 302.1 MB Notification: Performance of Transformations before backend: time 3.647e-06/0.09122, allocations: 4 kB / 466.8 MB, free: 12.75 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.0003464/0.09157, allocations: 323.5 kB / 467.1 MB, free: 12.38 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.301e-05/0.09162, allocations: 8.031 kB / 467.1 MB, free: 12.37 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.661e-05/0.09166, allocations: 34.75 kB / 467.2 MB, free: 12.33 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.355e-05/0.09169, allocations: 4.938 kB / 467.2 MB, free: 12.32 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001305/0.09183, allocations: 168.6 kB / 467.3 MB, free: 12.12 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.227e-05/0.09185, allocations: 384 / 467.3 MB, free: 12.12 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.774e-05/0.09187, allocations: 12.25 kB / 467.3 MB, free: 12.11 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.583e-05/0.09196, allocations: 38.25 kB / 467.4 MB, free: 12.07 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.306e-06/0.09198, allocations: 7.938 kB / 467.4 MB, free: 12.06 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.735e-06/0.09199, allocations: 0 / 467.4 MB, free: 12.06 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.298e-06/0.092, allocations: 0 / 467.4 MB, free: 12.06 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.542e-05/0.09204, allocations: 4 kB / 467.4 MB, free: 12.05 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001627/0.09221, allocations: 153.7 kB / 467.5 MB, free: 11.86 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.519e-05/0.09228, allocations: 38.55 kB / 467.6 MB, free: 11.81 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.866e-05/0.09233, allocations: 16.86 kB / 467.6 MB, free: 11.79 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.618e-06/0.09234, allocations: 4 kB / 467.6 MB, free: 11.79 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.07e-05/0.09237, allocations: 30.56 kB / 467.6 MB, free: 11.75 MB / 302.1 MB Notification: Performance of pre-optimization done (n=3): time 9.72e-07/0.09237, allocations: 0 / 467.6 MB, free: 11.75 MB / 302.1 MB Notification: Performance of matching and sorting (n=3): time 0.0001341/0.09251, allocations: 53.62 kB / 467.7 MB, free: 11.69 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.747e-05/0.09256, allocations: 59.39 kB / 467.7 MB, free: 11.62 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.828e-05/0.09263, allocations: 93.86 kB / 467.8 MB, free: 11.52 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.765e-05/0.09266, allocations: 29.7 kB / 467.9 MB, free: 11.48 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.425e-05/0.0927, allocations: 88.02 kB / 467.9 MB, free: 11.39 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.274e-05/0.09273, allocations: 11.91 kB / 468 MB, free: 11.38 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.749e-05/0.09276, allocations: 13.7 kB / 468 MB, free: 11.36 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001236/0.09289, allocations: 314.8 kB / 468.3 MB, free: 11.04 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.608e-05/0.09291, allocations: 8 kB / 468.3 MB, free: 11.04 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.849e-06/0.09293, allocations: 384 / 468.3 MB, free: 11.04 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.224e-05/0.09298, allocations: 24.92 kB / 468.3 MB, free: 11.01 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.697e-06/0.09299, allocations: 4 kB / 468.3 MB, free: 11 MB / 302.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 6.998e-05/0.09306, allocations: 41.7 kB / 468.4 MB, free: 10.96 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.386e-05/0.09308, allocations: 7.938 kB / 468.4 MB, free: 10.95 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.631e-06/0.09309, allocations: 7.984 kB / 468.4 MB, free: 10.94 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.728e-06/0.09311, allocations: 0 / 468.4 MB, free: 10.94 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.051e-05/0.0932, allocations: 15.92 kB / 468.4 MB, free: 10.93 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.33e-06/0.09322, allocations: 0 / 468.4 MB, free: 10.93 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.583e-05/0.09324, allocations: 0 / 468.4 MB, free: 10.93 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.025e-06/0.09325, allocations: 8 kB / 468.4 MB, free: 10.92 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 7.613e-05/0.09333, allocations: 110.4 kB / 468.5 MB, free: 10.8 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.015e-05/0.09335, allocations: 7.844 kB / 468.5 MB, free: 10.79 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.351e-05/0.09337, allocations: 7.5 kB / 468.5 MB, free: 10.78 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.272e-06/0.09338, allocations: 4 kB / 468.5 MB, free: 10.78 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.059e-06/0.09339, allocations: 0 / 468.5 MB, free: 10.78 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.368e-06/0.0934, allocations: 3.984 kB / 468.5 MB, free: 10.77 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001253/0.09353, allocations: 149.7 kB / 468.7 MB, free: 10.58 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.823e-06/0.09354, allocations: 0 / 468.7 MB, free: 10.58 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.648e-05/0.09361, allocations: 11.98 kB / 468.7 MB, free: 10.57 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.183e-06/0.09363, allocations: 3.938 kB / 468.7 MB, free: 10.56 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.314e-06/0.09364, allocations: 3.938 kB / 468.7 MB, free: 10.56 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.183e-06/0.09364, allocations: 0 / 468.7 MB, free: 10.56 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.132e-06/0.09365, allocations: 0 / 468.7 MB, free: 10.56 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001237/0.09378, allocations: 85.09 kB / 468.8 MB, free: 10.46 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.821e-05/0.09384, allocations: 77.11 kB / 468.9 MB, free: 10.36 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.407e-05/0.09386, allocations: 7.922 kB / 468.9 MB, free: 10.36 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.667e-05/0.09388, allocations: 4 kB / 468.9 MB, free: 10.35 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.294e-05/0.0939, allocations: 0 / 468.9 MB, free: 10.35 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.941e-06/0.09391, allocations: 8 kB / 468.9 MB, free: 10.34 MB / 302.1 MB Notification: Performance of sorting global known variables: time 3.721e-05/0.09395, allocations: 75.28 kB / 468.9 MB, free: 10.27 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.09396, allocations: 4 kB / 468.9 MB, free: 10.27 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0001809/0.09415, allocations: 8 kB / 469 MB, free: 10.26 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.0003933/0.09455, allocations: 0.6123 MB / 469.6 MB, free: 9.613 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 7.837e-05/0.09464, allocations: 16 kB / 469.6 MB, free: 9.598 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.034e-06/0.09465, allocations: 0 / 469.6 MB, free: 9.598 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 1.951e-05/0.09467, allocations: 12.05 kB / 469.6 MB, free: 9.586 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001399/0.09482, allocations: 8.469 kB / 469.6 MB, free: 9.578 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009185/0.09575, allocations: 1.121 MB / 470.7 MB, free: 8.375 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002459/0.09601, allocations: 0.677 MB / 471.4 MB, free: 7.672 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 1.504e-05/0.09603, allocations: 0 / 471.4 MB, free: 7.672 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.766e-05/0.09606, allocations: 7.438 kB / 471.4 MB, free: 7.664 MB / 302.1 MB Notification: Performance of SimCode: time 3.91e-07/0.09607, allocations: 0 / 471.4 MB, free: 7.664 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.00981/0.1059, allocations: 0.8959 MB / 472.3 MB, free: 6.871 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002357/0.1061, allocations: 192.1 kB / 472.5 MB, free: 6.609 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.582/1.688, allocations: 0 / 472.5 MB, free: 6.609 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)