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.00145/0.00145, 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.37/1.37, allocations: 222.9 MB / 239.3 MB, free: 4.641 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.001429/0.001429, allocations: 200.4 kB / 289.6 MB, free: 2.352 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.07985/0.07985, allocations: 8.801 MB / 348.5 MB, free: 4.727 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001484/0.001484, allocations: 80.41 kB / 411.2 MB, free: 42.11 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07602/0.07753, allocations: 51.56 MB / 462.7 MB, free: 14.32 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.FirstSteps.Electrical1): time 0.001618/0.07919, allocations: 497 kB / 463.2 MB, free: 13.82 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001256/0.07933, allocations: 27.89 kB / 463.3 MB, free: 13.8 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.111e-05/0.07937, allocations: 0 / 463.3 MB, free: 13.8 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 1.349e-05/0.07939, allocations: 0 / 463.3 MB, free: 13.8 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 3.082e-05/0.07943, allocations: 3.938 kB / 463.3 MB, free: 13.79 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001079/0.07954, allocations: 0 / 463.3 MB, free: 13.79 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 4.138e-05/0.07959, allocations: 4 kB / 463.3 MB, free: 13.79 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.916e-05/0.07964, allocations: 11.98 kB / 463.3 MB, free: 13.78 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.743e-05/0.07967, allocations: 7.938 kB / 463.3 MB, free: 13.77 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.285e-05/0.07971, allocations: 4 kB / 463.3 MB, free: 13.77 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.588e-05/0.07974, allocations: 0 / 463.3 MB, free: 13.77 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.594e-06/0.07975, allocations: 3.938 kB / 463.3 MB, free: 13.76 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 1.358e-05/0.07977, allocations: 0 / 463.3 MB, free: 13.76 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 2.39e-05/0.0798, allocations: 15.92 kB / 463.3 MB, free: 13.75 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 4.252e-05/0.07984, allocations: 7.922 kB / 463.3 MB, free: 13.74 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.487e-06/0.07985, allocations: 0 / 463.3 MB, free: 13.74 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.775e-06/0.07986, allocations: 0 / 463.3 MB, free: 13.74 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.208e-06/0.07987, allocations: 3.938 kB / 463.3 MB, free: 13.73 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.0003258/0.0802, allocations: 331.5 kB / 463.6 MB, free: 13.36 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.366e-05/0.08024, allocations: 12.03 kB / 463.7 MB, free: 13.35 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.731e-05/0.08028, allocations: 30.75 kB / 463.7 MB, free: 13.31 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 1.759e-05/0.0803, allocations: 0.9375 kB / 463.7 MB, free: 13.31 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.015e-05/0.0804, allocations: 164.4 kB / 463.8 MB, free: 13.11 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.866e-06/0.08041, allocations: 384 / 463.8 MB, free: 13.11 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.732e-05/0.08044, allocations: 4.359 kB / 463.9 MB, free: 13.11 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.003e-05/0.08052, allocations: 34.27 kB / 463.9 MB, free: 13.07 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.524e-06/0.08053, allocations: 3.938 kB / 463.9 MB, free: 13.06 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.242e-06/0.08055, allocations: 4 kB / 463.9 MB, free: 13.06 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5e-06/0.08056, allocations: 4 kB / 463.9 MB, free: 13.05 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.155e-05/0.08059, allocations: 15.92 kB / 463.9 MB, free: 13.04 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001364/0.08073, allocations: 150 kB / 464.1 MB, free: 12.84 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.99e-05/0.0808, allocations: 38.56 kB / 464.1 MB, free: 12.8 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.399e-05/0.08083, allocations: 8.859 kB / 464.1 MB, free: 12.79 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.731e-06/0.08084, allocations: 96 / 464.1 MB, free: 12.79 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.226e-05/0.08087, allocations: 42.55 kB / 464.1 MB, free: 12.73 MB / 302.1 MB Notification: Performance of pre-optimization done (n=3): time 2.144e-06/0.08088, allocations: 3.984 kB / 464.2 MB, free: 12.73 MB / 302.1 MB Notification: Performance of matching and sorting (n=3): time 0.0001192/0.081, allocations: 57.47 kB / 464.2 MB, free: 12.67 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.733e-05/0.08105, allocations: 55.41 kB / 464.3 MB, free: 12.6 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.632e-05/0.08112, allocations: 93.86 kB / 464.4 MB, free: 12.5 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.299e-05/0.08114, allocations: 25.7 kB / 464.4 MB, free: 12.47 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.289e-05/0.08117, allocations: 80.14 kB / 464.5 MB, free: 12.39 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.239e-05/0.08121, allocations: 23.83 kB / 464.5 MB, free: 12.36 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.095e-05/0.08125, allocations: 17.72 kB / 464.5 MB, free: 12.34 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 9.616e-05/0.08135, allocations: 318.8 kB / 464.8 MB, free: 12.02 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.389e-05/0.08137, allocations: 4 kB / 464.8 MB, free: 12.02 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.222e-05/0.08139, allocations: 7.984 kB / 464.8 MB, free: 12.01 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.527e-05/0.08143, allocations: 20.86 kB / 464.8 MB, free: 11.98 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.022e-06/0.08143, allocations: 0 / 464.8 MB, free: 11.98 MB / 302.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 6.684e-05/0.0815, allocations: 49.62 kB / 464.9 MB, free: 11.93 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.133e-05/0.08152, allocations: 7.938 kB / 464.9 MB, free: 11.92 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.456e-06/0.08153, allocations: 4 kB / 464.9 MB, free: 11.92 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.656e-06/0.08154, allocations: 0 / 464.9 MB, free: 11.92 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.514e-05/0.08162, allocations: 8 kB / 464.9 MB, free: 11.91 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.329e-06/0.08164, allocations: 3.938 kB / 464.9 MB, free: 11.91 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.786e-05/0.08166, allocations: 7.906 kB / 464.9 MB, free: 11.9 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.005e-06/0.08167, allocations: 0 / 464.9 MB, free: 11.9 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.721e-05/0.08174, allocations: 114.4 kB / 465 MB, free: 11.78 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.186e-05/0.08175, allocations: 11.94 kB / 465 MB, free: 11.77 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.763e-05/0.08178, allocations: 7.484 kB / 465.1 MB, free: 11.75 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.323e-06/0.08178, allocations: 4 kB / 465.1 MB, free: 11.75 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.026e-06/0.08179, allocations: 0 / 465.1 MB, free: 11.75 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.215e-06/0.0818, allocations: 0 / 465.1 MB, free: 11.75 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.113e-05/0.08189, allocations: 153.7 kB / 465.2 MB, free: 11.55 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.11e-07/0.0819, allocations: 0 / 465.2 MB, free: 11.55 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.241e-05/0.08197, allocations: 11.94 kB / 465.2 MB, free: 11.54 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.065e-06/0.08198, allocations: 3.938 kB / 465.2 MB, free: 11.54 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.001e-06/0.08199, allocations: 0 / 465.2 MB, free: 11.54 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.42e-07/0.08199, allocations: 0 / 465.2 MB, free: 11.54 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.22e-07/0.082, allocations: 4 kB / 465.2 MB, free: 11.53 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001062/0.08211, allocations: 81.11 kB / 465.3 MB, free: 11.43 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.738e-05/0.08216, allocations: 81.58 kB / 465.4 MB, free: 11.34 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.203e-05/0.08217, allocations: 3.938 kB / 465.4 MB, free: 11.33 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.562e-05/0.08219, allocations: 0 / 465.4 MB, free: 11.33 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.173e-05/0.08221, allocations: 4.031 kB / 465.4 MB, free: 11.33 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.488e-06/0.08222, allocations: 4 kB / 465.4 MB, free: 11.32 MB / 302.1 MB Notification: Performance of sorting global known variables: time 3.052e-05/0.08225, allocations: 83.27 kB / 465.5 MB, free: 11.24 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.08226, allocations: 0 / 465.5 MB, free: 11.24 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0001742/0.08244, allocations: 8.062 kB / 465.5 MB, free: 11.23 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.0003314/0.08278, allocations: 0.6085 MB / 466.1 MB, free: 10.59 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 7.609e-05/0.08286, allocations: 23.92 kB / 466.1 MB, free: 10.57 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.803e-06/0.08287, allocations: 0 / 466.1 MB, free: 10.57 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 1.505e-05/0.08289, allocations: 11.94 kB / 466.1 MB, free: 10.56 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001296/0.08303, allocations: 6.406 kB / 466.1 MB, free: 10.55 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008202/0.08385, allocations: 1.114 MB / 467.2 MB, free: 9.359 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002106/0.08408, allocations: 0.6768 MB / 467.9 MB, free: 8.656 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 1.494e-05/0.0841, allocations: 4 kB / 467.9 MB, free: 8.652 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.181e-05/0.08413, allocations: 7.438 kB / 467.9 MB, free: 8.645 MB / 302.1 MB Notification: Performance of SimCode: time 2.71e-07/0.08413, allocations: 3.938 kB / 467.9 MB, free: 8.641 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01779/0.1019, allocations: 1.056 MB / 469 MB, free: 7.633 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.477/7.579, allocations: 7.016 kB / 469 MB, free: 7.629 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 & python3 -m fmpy simulate --output-file HanserModelica_HanserModelica.FirstSteps.Electrical1_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.001 HanserModelica_HanserModelica_FirstSteps_Electrical1.fmu > HanserModelica_HanserModelica.FirstSteps.Electrical1.pipe 2>&1)