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.005416/0.005416, allocations: 98.97 kB / 15.73 MB, free: 6.012 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.354/1.354, allocations: 222.9 MB / 239.4 MB, free: 4.512 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.001569/0.001569, allocations: 195.4 kB / 289.7 MB, free: 2.23 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03525/0.03525, allocations: 8.799 MB / 348.7 MB, free: 4.605 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002483/0.002483, allocations: 83.86 kB / 463.4 MB, free: 13.59 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1002/0.1027, allocations: 51.56 MB / 0.5029 GB, free: 9.992 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.Machines.EquivalentCircuit): time 0.02168/0.1244, allocations: 18.92 MB / 0.5214 GB, free: 6.984 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01243/0.1369, allocations: 5.027 MB / 0.5263 GB, free: 1.941 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003718/0.1407, allocations: 151.6 kB / 0.5264 GB, free: 1.793 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.2141/0.3548, allocations: 8.217 MB / 0.5345 GB, free: 3.484 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006727/0.3616, allocations: 2.155 MB / 0.5366 GB, free: 3.418 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004233/0.3658, allocations: 1.58 MB / 0.5381 GB, free: 3.383 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01284/0.3787, allocations: 10.76 MB / 0.5486 GB, free: 1.977 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.04312/0.4218, allocations: 25.33 MB / 0.5734 GB, free: 4.816 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01252/0.4344, allocations: 6.08 MB / 0.5793 GB, free: 15.42 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01312/0.4476, allocations: 6.777 MB / 0.5859 GB, free: 8.848 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.004838/0.4525, allocations: 1.621 MB / 0.5875 GB, free: 7.227 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007439/0.4599, allocations: 1.912 MB / 0.5894 GB, free: 5.32 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.006222/0.4662, allocations: 3.298 MB / 0.5926 GB, free: 2.074 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01469/0.4809, allocations: 6.392 MB / 0.5988 GB, free: 11.71 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0312/0.5122, allocations: 21.96 MB / 0.6203 GB, free: 6.137 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.107e-06/0.5122, allocations: 4 kB / 0.6203 GB, free: 6.133 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.733e-06/0.5122, allocations: 0 / 0.6203 GB, free: 6.133 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0005765/0.5128, allocations: 0 / 0.6203 GB, free: 6.133 MB / 430.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.04207/0.5549, allocations: 14.02 MB / 0.634 GB, free: 8.113 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.336e-05/0.555, allocations: 8.031 kB / 0.634 GB, free: 8.105 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0065/0.5615, allocations: 1.57 MB / 0.6355 GB, free: 6.535 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04347/0.605, allocations: 7.932 MB / 0.6433 GB, free: 14.68 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01436/0.6194, allocations: 6.779 MB / 0.6499 GB, free: 7.879 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009245/0.6203, allocations: 0.8118 MB / 0.6507 GB, free: 7.074 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005933/0.6263, allocations: 1.062 MB / 0.6517 GB, free: 6.023 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04249/0.6688, allocations: 17.77 MB / 0.6691 GB, free: 4.227 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003696/0.6692, allocations: 15.91 kB / 0.6691 GB, free: 4.211 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003063/0.6723, allocations: 455.8 kB / 0.6695 GB, free: 3.777 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000683/0.673, allocations: 0.5774 MB / 0.6701 GB, free: 3.195 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03305/0.7061, allocations: 16.21 MB / 0.6859 GB, free: 2.957 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4618/1.168, allocations: 52.83 MB / 0.7375 GB, free: 140.8 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0153/1.183, allocations: 15.74 MB / 0.7529 GB, free: 131.1 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.006371/1.19, allocations: 3.762 MB / 0.7565 GB, free: 131 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004718/1.19, allocations: 190.1 kB / 0.7567 GB, free: 130.9 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.983e-05/1.19, allocations: 83.8 kB / 0.7568 GB, free: 130.9 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=492): time 7.103e-06/1.19, allocations: 0 / 0.7568 GB, free: 130.9 MB / 0.5294 GB Notification: Performance of matching and sorting (n=492): time 0.02104/1.211, allocations: 10.64 MB / 0.7672 GB, free: 130.2 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.596e-05/1.211, allocations: 133 kB / 0.7673 GB, free: 130.1 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004261/1.216, allocations: 3.504 MB / 0.7707 GB, free: 129.9 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.0006799/1.216, allocations: 103.5 kB / 0.7708 GB, free: 129.9 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.001676/1.218, allocations: 4.499 MB / 0.7752 GB, free: 128.2 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.001231/1.219, allocations: 1.752 MB / 0.777 GB, free: 127.2 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001539/1.221, allocations: 1.308 MB / 0.7782 GB, free: 127.1 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 3.76e-05/1.221, allocations: 305.1 kB / 0.7785 GB, free: 126.8 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003583/1.224, allocations: 3.268 MB / 0.7817 GB, free: 126.8 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004416/1.229, allocations: 5.614 MB / 0.7872 GB, free: 123.8 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008873/1.238, allocations: 9.512 MB / 0.7965 GB, free: 117.8 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.502e-05/1.238, allocations: 22.69 kB / 0.7965 GB, free: 117.8 MB / 0.5294 GB Notification: Performance of matching and sorting (n=864) (initialization): time 0.01549/1.253, allocations: 10.28 MB / 0.8065 GB, free: 113.8 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 6.879e-05/1.253, allocations: 37.25 kB / 0.8066 GB, free: 113.8 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001256/1.254, allocations: 77.06 kB / 0.8067 GB, free: 113.8 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002608/1.256, allocations: 1.091 MB / 0.8077 GB, free: 113.6 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005025/1.261, allocations: 1.516 MB / 0.8092 GB, free: 113.4 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01175/1.273, allocations: 13.64 MB / 0.8225 GB, free: 102.5 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004304/1.277, allocations: 0.8694 MB / 0.8234 GB, free: 101.6 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007867/1.278, allocations: 316 kB / 0.8237 GB, free: 101.3 MB / 0.5294 GB 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.004918/1.283, allocations: 4.114 MB / 0.8277 GB, free: 97.18 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006671/1.284, allocations: 417.3 kB / 0.8281 GB, free: 96.77 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009932/1.294, allocations: 7.86 MB / 0.8358 GB, free: 88.85 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.007336/1.301, allocations: 6.48 MB / 0.8421 GB, free: 82.31 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.408e-05/1.301, allocations: 16 kB / 0.8421 GB, free: 82.3 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.746e-05/1.301, allocations: 27.84 kB / 0.8421 GB, free: 82.27 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02199/1.323, allocations: 17.54 MB / 0.8593 GB, free: 64.56 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.114e-05/1.323, allocations: 17 kB / 0.8593 GB, free: 64.54 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002997/1.326, allocations: 0.9516 MB / 0.8602 GB, free: 63.59 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002228/1.328, allocations: 0.9865 MB / 0.8612 GB, free: 62.59 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002865/1.329, allocations: 131.9 kB / 0.8613 GB, free: 62.47 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01092/1.34, allocations: 13.31 MB / 0.8743 GB, free: 48.63 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.198e-05/1.34, allocations: 23.88 kB / 0.8743 GB, free: 48.61 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01395/1.354, allocations: 12.12 MB / 0.8861 GB, free: 35.95 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002177/1.356, allocations: 1.137 MB / 0.8873 GB, free: 34.79 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006756/1.357, allocations: 120 kB / 0.8874 GB, free: 34.67 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002345/1.359, allocations: 319.6 kB / 0.8877 GB, free: 34.36 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006516/1.36, allocations: 403.7 kB / 0.8881 GB, free: 33.96 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002644/1.36, allocations: 160 kB / 0.8882 GB, free: 33.81 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.002711/1.363, allocations: 2.366 MB / 0.8905 GB, free: 31.45 MB / 0.5294 GB Notification: Performance of sort global known variables: time 2.1e-07/1.363, allocations: 0 / 0.8905 GB, free: 31.45 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.006383/1.369, allocations: 2.683 MB / 0.8931 GB, free: 28.75 MB / 0.5294 GB 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.01454/1.384, allocations: 12.89 MB / 0.9057 GB, free: 15.32 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.01059/1.394, allocations: 8.624 MB / 0.9142 GB, free: 6.609 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 1.495e-05/1.394, allocations: 4 kB / 0.9142 GB, free: 6.605 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.005019/1.399, allocations: 4.256 MB / 0.9183 GB, free: 2.305 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004429/1.404, allocations: 0.9461 MB / 0.9192 GB, free: 1.379 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3116/1.715, allocations: 59.69 MB / 0.9775 GB, free: 169.4 MB / 0.5607 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007432/1.723, allocations: 7.012 MB / 0.9844 GB, free: 166.9 MB / 0.5607 GB Notification: Performance of simCode: alias equations: time 0.005234/1.728, allocations: 2.538 MB / 0.9869 GB, free: 166.7 MB / 0.5607 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004823/1.733, allocations: 3.645 MB / 0.9904 GB, free: 163.6 MB / 0.5607 GB Notification: Performance of SimCode: time 1.283e-06/1.733, allocations: 0 / 0.9904 GB, free: 163.6 MB / 0.5607 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1767/1.91, allocations: 132.2 MB / 1.12 GB, free: 45.72 MB / 0.5607 GB Notification: Performance of buildModelFMU: Generate platform static: time 18.45/20.36, allocations: 3.859 kB / 1.12 GB, free: 45.72 MB / 0.5607 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)