Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr HanserModelica_HanserModelica.Machines.EquivalentCircuit.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.Machines.EquivalentCircuit,fileNamePrefix="HanserModelica_HanserModelica_Machines_EquivalentCircuit",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.Machines.EquivalentCircuit,fileNamePrefix="HanserModelica_HanserModelica_Machines_EquivalentCircuit",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.001246/0.001246, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.31/1.31, allocations: 222.9 MB / 238.9 MB, free: 4.734 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.001173/0.001173, allocations: 188.5 kB / 289.1 MB, free: 2.484 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03389/0.03389, allocations: 8.789 MB / 348.1 MB, free: 4.887 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001386/0.001386, allocations: 77.12 kB / 410.5 MB, free: 42.51 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07086/0.07226, allocations: 51.56 MB / 462.1 MB, free: 14.89 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.Machines.EquivalentCircuit): time 0.01782/0.09012, allocations: 18.57 MB / 480.7 MB, free: 12.21 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01014/0.1003, allocations: 4.996 MB / 485.6 MB, free: 7.203 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003354/0.1037, allocations: 155.5 kB / 485.8 MB, free: 7.051 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01566/0.1194, allocations: 7.793 MB / 493.6 MB, free: 15.25 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006445/0.1258, allocations: 1.97 MB / 495.6 MB, free: 13.27 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004049/0.1299, allocations: 1.497 MB / 497.1 MB, free: 11.79 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.01126/0.1411, allocations: 10.78 MB / 0.4959 GB, free: 0.9609 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03501/0.1762, allocations: 21.27 MB / 0.5167 GB, free: 11.52 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.009795/0.186, allocations: 5.375 MB / 0.522 GB, free: 6.133 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.2114/0.3975, allocations: 6.582 MB / 0.5284 GB, free: 22.62 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00427/0.4018, allocations: 1.197 MB / 0.5296 GB, free: 22.62 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005603/0.4074, allocations: 1.479 MB / 0.531 GB, free: 22.62 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0044/0.4118, allocations: 2.844 MB / 0.5338 GB, free: 22.62 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01296/0.4248, allocations: 5.937 MB / 0.5396 GB, free: 22.11 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0244/0.4493, allocations: 21.49 MB / 0.5606 GB, free: 16.51 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.21e-06/0.4493, allocations: 0 / 0.5606 GB, free: 16.51 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.513e-06/0.4493, allocations: 0 / 0.5606 GB, free: 16.51 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0007525/0.4501, allocations: 0 / 0.5606 GB, free: 16.51 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3006 * Number of variables: 3006 Notification: Performance of Generate backend data structure: time 0.04798/0.4981, allocations: 13.84 MB / 0.5741 GB, free: 8.852 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.456e-05/0.4981, allocations: 14.16 kB / 0.5741 GB, free: 8.852 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.007611/0.5058, allocations: 1.574 MB / 0.5756 GB, free: 7.75 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04098/0.5468, allocations: 7.856 MB / 0.5833 GB, free: 4.27 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01361/0.5604, allocations: 6.548 MB / 0.5897 GB, free: 15.34 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007929/0.5612, allocations: 0.8121 MB / 0.5905 GB, free: 14.53 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004821/0.5661, allocations: 1.064 MB / 0.5915 GB, free: 13.48 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04992/0.616, allocations: 17.8 MB / 0.6089 GB, free: 11.65 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004339/0.6165, allocations: 11.91 kB / 0.6089 GB, free: 11.64 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004233/0.6207, allocations: 456.9 kB / 0.6094 GB, free: 11.21 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006634/0.6214, allocations: 0.5774 MB / 0.6099 GB, free: 10.62 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03431/0.6557, allocations: 16.25 MB / 0.6258 GB, free: 10.35 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08282/0.7386, allocations: 53.32 MB / 0.6779 GB, free: 4.773 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01529/0.7539, allocations: 15.83 MB / 0.6933 GB, free: 3.461 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005665/0.7596, allocations: 3.833 MB / 0.6971 GB, free: 15.63 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003991/0.76, allocations: 192.9 kB / 0.6972 GB, free: 15.44 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.806e-05/0.7601, allocations: 82.98 kB / 0.6973 GB, free: 15.35 MB / 494.1 MB Notification: Performance of pre-optimization done (n=504): time 6.322e-06/0.7601, allocations: 0 / 0.6973 GB, free: 15.35 MB / 494.1 MB Notification: Performance of matching and sorting (n=504): time 0.02048/0.7806, allocations: 10.86 MB / 0.7079 GB, free: 4.41 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.004e-05/0.7807, allocations: 133.5 kB / 0.708 GB, free: 4.258 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005227/0.7859, allocations: 3.493 MB / 0.7115 GB, free: 0.7539 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0006406/0.7866, allocations: 105.6 kB / 0.7116 GB, free: 0.6445 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.1856/0.9722, allocations: 4.326 MB / 0.7158 GB, free: 159.7 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001808/0.974, allocations: 1.706 MB / 0.7175 GB, free: 158.6 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002112/0.9761, allocations: 1.312 MB / 0.7187 GB, free: 158.5 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 3.868e-05/0.9762, allocations: 302.8 kB / 0.719 GB, free: 158.2 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004657/0.9808, allocations: 3.346 MB / 0.7223 GB, free: 158.2 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005984/0.9868, allocations: 5.691 MB / 0.7278 GB, free: 155.4 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.011/0.9979, allocations: 9.668 MB / 0.7373 GB, free: 152.3 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001475/0.998, allocations: 23.5 kB / 0.7373 GB, free: 152.3 MB / 494.1 MB Notification: Performance of matching and sorting (n=876) (initialization): time 0.01514/1.013, allocations: 10.43 MB / 0.7475 GB, free: 149.4 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.458e-05/1.013, allocations: 36.97 kB / 0.7475 GB, free: 149.4 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001271/1.013, allocations: 77.5 kB / 0.7476 GB, free: 149.4 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002554/1.016, allocations: 1.08 MB / 0.7487 GB, free: 149.1 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005167/1.021, allocations: 1.514 MB / 0.7501 GB, free: 149 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01131/1.032, allocations: 12.46 MB / 0.7623 GB, free: 139.9 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004962/1.037, allocations: 0.8583 MB / 0.7631 GB, free: 139.1 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001124/1.039, allocations: 323.6 kB / 0.7635 GB, free: 138.8 MB / 494.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 341 * 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 (796): * Single equations (assignments): 784 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 8 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(4,30,100.0%), (1,13,100.0%), (1,13,100.0%), (1,13,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.007973/1.047, allocations: 4.111 MB / 0.7675 GB, free: 135.4 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00118/1.048, allocations: 395.1 kB / 0.7678 GB, free: 135 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01207/1.06, allocations: 8.016 MB / 0.7757 GB, free: 128.4 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.008076/1.068, allocations: 6.635 MB / 0.7822 GB, free: 122.7 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.094e-05/1.068, allocations: 12 kB / 0.7822 GB, free: 122.6 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.796e-05/1.068, allocations: 31.61 kB / 0.7822 GB, free: 122.6 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02938/1.097, allocations: 17.94 MB / 0.7997 GB, free: 104.7 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.558e-05/1.098, allocations: 12 kB / 0.7997 GB, free: 104.7 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003302/1.101, allocations: 0.9517 MB / 0.8007 GB, free: 103.7 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002444/1.103, allocations: 0.9791 MB / 0.8016 GB, free: 102.8 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006753/1.104, allocations: 126.8 kB / 0.8017 GB, free: 102.6 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01074/1.115, allocations: 12.21 MB / 0.8137 GB, free: 89.93 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.487e-06/1.115, allocations: 19.94 kB / 0.8137 GB, free: 89.91 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01537/1.13, allocations: 12.37 MB / 0.8258 GB, free: 77.01 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002584/1.133, allocations: 1.131 MB / 0.8269 GB, free: 75.86 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000751/1.134, allocations: 116 kB / 0.827 GB, free: 75.74 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002394/1.136, allocations: 315.6 kB / 0.8273 GB, free: 75.43 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006878/1.137, allocations: 399.7 kB / 0.8276 GB, free: 75.04 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002832/1.137, allocations: 172 kB / 0.8278 GB, free: 74.88 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.002873/1.14, allocations: 2.354 MB / 0.8301 GB, free: 72.52 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.21e-07/1.14, allocations: 0 / 0.8301 GB, free: 72.52 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.006884/1.147, allocations: 2.66 MB / 0.8327 GB, free: 69.85 MB / 494.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 60 * Number of states: 2 (sineVoltage_m.plug_p.reference.gamma,sineVoltage_e.plug_p.reference.gamma) * 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 (507): * Single equations (assignments): 495 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 8 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(4,30,100.0%), (1,13,100.0%), (1,13,100.0%), (1,13,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.01541/1.162, allocations: 13.15 MB / 0.8455 GB, free: 56.17 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.01164/1.174, allocations: 8.73 MB / 0.8541 GB, free: 47.36 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.497e-05/1.174, allocations: 11.88 kB / 0.8541 GB, free: 47.34 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005508/1.179, allocations: 4.338 MB / 0.8583 GB, free: 42.96 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004956/1.184, allocations: 0.9061 MB / 0.8592 GB, free: 42.07 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2866/1.471, allocations: 71.66 MB / 0.9292 GB, free: 149.5 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01115/1.482, allocations: 7.013 MB / 0.936 GB, free: 147.1 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.006632/1.489, allocations: 2.536 MB / 0.9385 GB, free: 146.9 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006172/1.495, allocations: 3.651 MB / 0.9421 GB, free: 143.8 MB / 494.1 MB Notification: Performance of SimCode: time 1.102e-06/1.495, allocations: 0 / 0.9421 GB, free: 143.8 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1661/1.661, allocations: 132.2 MB / 1.071 GB, free: 17.95 MB / 494.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001515/1.661, allocations: 219 kB / 1.071 GB, free: 17.69 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.199/5.86, allocations: 0 / 1.071 GB, free: 17.69 MB / 494.1 MB (rm -f HanserModelica_HanserModelica.Machines.EquivalentCircuit.pipe ; mkfifo HanserModelica_HanserModelica.Machines.EquivalentCircuit.pipe ; head -c 1048576 < HanserModelica_HanserModelica.Machines.EquivalentCircuit.pipe >> ../files/HanserModelica_HanserModelica.Machines.EquivalentCircuit.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_HanserModelica_HanserModelica_Machines_EquivalentCircuit_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 HanserModelica_HanserModelica_Machines_EquivalentCircuit.fmu > HanserModelica_HanserModelica.Machines.EquivalentCircuit.pipe 2>&1)