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.001577/0.001577, allocations: 108 kB / 15.6 MB, free: 132 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.424/1.424, allocations: 222.9 MB / 239.3 MB, free: 4.59 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.001425/0.001425, allocations: 196 kB / 289.6 MB, free: 2.32 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03628/0.03628, allocations: 8.804 MB / 348.5 MB, free: 4.695 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002807/0.002808, allocations: 79.06 kB / 411.2 MB, free: 42.12 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1072/0.1101, allocations: 51.57 MB / 462.8 MB, free: 14.37 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.Machines.EquivalentCircuit): time 0.01846/0.1286, allocations: 18.91 MB / 481.7 MB, free: 11.35 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.009492/0.1381, allocations: 5.023 MB / 486.7 MB, free: 6.312 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003473/0.1416, allocations: 155.6 kB / 486.8 MB, free: 6.16 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01688/0.1585, allocations: 8.217 MB / 495.1 MB, free: 13.92 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008955/0.1675, allocations: 2.167 MB / 497.2 MB, free: 11.75 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005298/0.1728, allocations: 1.578 MB / 498.8 MB, free: 10.18 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.01327/0.1861, allocations: 10.67 MB / 0.4975 GB, free: 15.47 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03945/0.2256, allocations: 25.38 MB / 0.5223 GB, free: 5.895 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.192/0.4177, allocations: 6.034 MB / 0.5282 GB, free: 23.98 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.009747/0.4275, allocations: 6.797 MB / 0.5348 GB, free: 23.57 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.004943/0.4325, allocations: 1.622 MB / 0.5364 GB, free: 23.57 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006908/0.4394, allocations: 1.907 MB / 0.5383 GB, free: 23.57 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0052/0.4446, allocations: 3.303 MB / 0.5415 GB, free: 23.2 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01223/0.4569, allocations: 6.397 MB / 0.5478 GB, free: 21.7 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01791/0.4748, allocations: 21.79 MB / 0.569 GB, free: 12.03 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.87e-06/0.4748, allocations: 0 / 0.569 GB, free: 12.03 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.4749, allocations: 4.5 kB / 0.569 GB, free: 12.03 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0005226/0.4754, allocations: 0 / 0.569 GB, free: 12.03 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.03989/0.5153, allocations: 13.8 MB / 0.5825 GB, free: 3.582 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.989e-05/0.5154, allocations: 9.75 kB / 0.5825 GB, free: 3.582 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005368/0.5207, allocations: 1.566 MB / 0.5841 GB, free: 2.484 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04161/0.5624, allocations: 7.859 MB / 0.5917 GB, free: 12.31 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01369/0.5761, allocations: 6.56 MB / 0.5981 GB, free: 6.004 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007849/0.5769, allocations: 0.8128 MB / 0.5989 GB, free: 5.199 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003628/0.5805, allocations: 1.06 MB / 0.6 GB, free: 4.148 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03883/0.6194, allocations: 17.77 MB / 0.6173 GB, free: 2.355 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003605/0.6198, allocations: 19.89 kB / 0.6173 GB, free: 2.336 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003405/0.6232, allocations: 449 kB / 0.6178 GB, free: 1.91 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006425/0.6239, allocations: 0.5735 MB / 0.6183 GB, free: 1.332 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03353/0.6574, allocations: 16.21 MB / 0.6342 GB, free: 1.098 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08299/0.7404, allocations: 53.34 MB / 0.6862 GB, free: 11.5 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0168/0.7572, allocations: 15.76 MB / 0.7016 GB, free: 10.25 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005689/0.763, allocations: 3.743 MB / 0.7053 GB, free: 6.504 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005085/0.7635, allocations: 190.9 kB / 0.7055 GB, free: 6.312 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.664e-05/0.7636, allocations: 82.95 kB / 0.7056 GB, free: 6.223 MB / 494.1 MB Notification: Performance of pre-optimization done (n=492): time 8.255e-06/0.7636, allocations: 0 / 0.7056 GB, free: 6.223 MB / 494.1 MB Notification: Performance of matching and sorting (n=492): time 0.2255/0.9892, allocations: 10.61 MB / 0.7159 GB, free: 135.5 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001084/0.9893, allocations: 131.2 kB / 0.716 GB, free: 135.4 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00851/0.9978, allocations: 3.5 MB / 0.7195 GB, free: 135.2 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0009498/0.9988, allocations: 102.6 kB / 0.7196 GB, free: 135.2 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002687/1.002, allocations: 4.336 MB / 0.7238 GB, free: 132.8 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001781/1.003, allocations: 1.666 MB / 0.7254 GB, free: 131.8 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002183/1.006, allocations: 1.309 MB / 0.7267 GB, free: 131.7 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 4.508e-05/1.006, allocations: 302.4 kB / 0.727 GB, free: 131.4 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004637/1.01, allocations: 3.274 MB / 0.7302 GB, free: 131.4 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006588/1.017, allocations: 5.609 MB / 0.7357 GB, free: 128.6 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01116/1.028, allocations: 9.515 MB / 0.745 GB, free: 125.6 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001157/1.028, allocations: 24.53 kB / 0.745 GB, free: 125.6 MB / 494.1 MB Notification: Performance of matching and sorting (n=864) (initialization): time 0.01717/1.045, allocations: 10.26 MB / 0.755 GB, free: 122.9 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.684e-05/1.045, allocations: 43.16 kB / 0.755 GB, free: 122.9 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001202/1.046, allocations: 73.03 kB / 0.7551 GB, free: 122.9 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002814/1.048, allocations: 1.099 MB / 0.7562 GB, free: 122.6 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005271/1.054, allocations: 1.509 MB / 0.7577 GB, free: 122.6 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01219/1.066, allocations: 13.63 MB / 0.771 GB, free: 111.5 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004679/1.071, allocations: 0.8458 MB / 0.7718 GB, free: 110.8 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008766/1.072, allocations: 319.6 kB / 0.7721 GB, free: 110.5 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 (790): * Single equations (assignments): 784 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * 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.006525/1.078, allocations: 4.118 MB / 0.7761 GB, free: 107.1 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008647/1.079, allocations: 394.8 kB / 0.7765 GB, free: 106.8 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01137/1.09, allocations: 7.87 MB / 0.7842 GB, free: 99.35 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.008416/1.099, allocations: 6.479 MB / 0.7905 GB, free: 92.87 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.322e-05/1.099, allocations: 12 kB / 0.7905 GB, free: 92.86 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.642e-05/1.099, allocations: 27.89 kB / 0.7905 GB, free: 92.83 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02778/1.127, allocations: 17.71 MB / 0.8078 GB, free: 75.03 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.67e-05/1.127, allocations: 16 kB / 0.8079 GB, free: 75.01 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003377/1.13, allocations: 0.9511 MB / 0.8088 GB, free: 74.11 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002408/1.133, allocations: 0.9866 MB / 0.8098 GB, free: 73.12 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004509/1.133, allocations: 124 kB / 0.8099 GB, free: 73 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01139/1.144, allocations: 13.32 MB / 0.8229 GB, free: 59.23 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.313e-05/1.144, allocations: 22.28 kB / 0.8229 GB, free: 59.21 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01529/1.16, allocations: 12.09 MB / 0.8347 GB, free: 46.64 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002753/1.163, allocations: 1.115 MB / 0.8358 GB, free: 45.5 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001231/1.164, allocations: 112 kB / 0.8359 GB, free: 45.39 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003208/1.167, allocations: 327.7 kB / 0.8362 GB, free: 45.07 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009101/1.168, allocations: 388.7 kB / 0.8366 GB, free: 44.7 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003973/1.168, allocations: 174.5 kB / 0.8368 GB, free: 44.53 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.003133/1.172, allocations: 2.354 MB / 0.8391 GB, free: 42.18 MB / 494.1 MB Notification: Performance of sort global known variables: time 2.51e-07/1.172, allocations: 0 / 0.8391 GB, free: 42.18 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.00742/1.179, allocations: 2.662 MB / 0.8417 GB, free: 39.51 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 (501): * Single equations (assignments): 495 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * 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.01544/1.194, allocations: 12.87 MB / 0.8542 GB, free: 26.21 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.02446/1.219, allocations: 14.88 MB / 0.8688 GB, free: 11.6 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.808e-05/1.219, allocations: 1 kB / 0.8688 GB, free: 11.6 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.006661/1.226, allocations: 4.256 MB / 0.8729 GB, free: 7.418 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00665/1.232, allocations: 0.9417 MB / 0.8738 GB, free: 6.504 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2786/1.511, allocations: 66.73 MB / 0.939 GB, free: 152 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01052/1.522, allocations: 7.021 MB / 0.9459 GB, free: 149.5 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.005742/1.527, allocations: 2.537 MB / 0.9483 GB, free: 149.3 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004042/1.531, allocations: 3.639 MB / 0.9519 GB, free: 146.2 MB / 0.4981 GB Notification: Performance of SimCode: time 7.31e-07/1.531, allocations: 0 / 0.9519 GB, free: 146.2 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1611/1.693, allocations: 133.5 MB / 1.082 GB, free: 15.03 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.02/13.71, allocations: 14.73 kB / 1.082 GB, free: 15.02 MB / 0.4981 GB (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)