Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Start.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Start,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMS_Start",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Start,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMS_Start",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001545/0.001544, allocations: 122.1 kB / 17.79 MB, free: 5.273 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001697/0.001697, allocations: 202 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.438/1.438, allocations: 227.4 MB / 246.9 MB, free: 10.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.003049/0.003049, allocations: 63.89 kB / 358.2 MB, free: 13.4 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2915/0.2946, allocations: 50.55 MB / 408.8 MB, free: 1.543 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Start): time 0.02959/0.3242, allocations: 24.3 MB / 433.1 MB, free: 9.141 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01612/0.3404, allocations: 7.194 MB / 440.3 MB, free: 1.93 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005439/0.3459, allocations: 167.3 kB / 440.4 MB, free: 1.766 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00583/0.3518, allocations: 1.658 MB / 442.1 MB, free: 100 kB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008662/0.3605, allocations: 2.38 MB / 444.5 MB, free: 13.7 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004386/0.3649, allocations: 1.45 MB / 445.9 MB, free: 12.25 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01282/0.3778, allocations: 8.918 MB / 454.8 MB, free: 3.301 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01046/0.3883, allocations: 7.174 MB / 462 MB, free: 12.03 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007821/0.3961, allocations: 4.07 MB / 466.1 MB, free: 7.949 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008888/0.4051, allocations: 4.862 MB / 471 MB, free: 3.07 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003476/0.4086, allocations: 1.102 MB / 472.1 MB, free: 1.969 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004493/0.4131, allocations: 1.402 MB / 473.5 MB, free: 0.5664 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003113/0.4162, allocations: 2.716 MB / 476.2 MB, free: 13.84 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.008138/0.4244, allocations: 4.695 MB / 480.9 MB, free: 9.129 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0194/0.4438, allocations: 14.55 MB / 495.4 MB, free: 10.53 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.903e-06/0.4439, allocations: 0 / 495.4 MB, free: 10.53 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.4439, allocations: 0 / 495.4 MB, free: 10.53 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0004327/0.4443, allocations: 0 / 495.4 MB, free: 10.53 MB / 414.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1778 * Number of variables: 1778 Notification: Performance of Generate backend data structure: time 0.03019/0.4745, allocations: 9.156 MB / 0.4928 GB, free: 1.27 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.353e-05/0.4746, allocations: 12.03 kB / 0.4928 GB, free: 1.258 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002901/0.4775, allocations: 0.9257 MB / 0.4937 GB, free: 332 kB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007583/0.4851, allocations: 1.378 MB / 0.495 GB, free: 14.94 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01384/0.499, allocations: 5.484 MB / 0.5004 GB, free: 9.391 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007495/0.4998, allocations: 0.5017 MB / 0.5009 GB, free: 8.887 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0029/0.5027, allocations: 0.6678 MB / 0.5015 GB, free: 8.219 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02492/0.5276, allocations: 9.449 MB / 0.5107 GB, free: 14.65 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000235/0.5279, allocations: 15.88 kB / 0.5108 GB, free: 14.63 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001314/0.5292, allocations: 280 kB / 0.511 GB, free: 14.36 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003241/0.5296, allocations: 297.4 kB / 0.5113 GB, free: 14.07 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01868/0.5482, allocations: 8.098 MB / 0.5192 GB, free: 5.953 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4609/1.009, allocations: 29.25 MB / 0.5478 GB, free: 103.8 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009044/1.018, allocations: 12.3 MB / 0.5598 GB, free: 95.42 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004835/1.023, allocations: 3.388 MB / 0.5631 GB, free: 94.2 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0108/1.034, allocations: 7.036 MB / 0.57 GB, free: 90.82 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.501e-05/1.034, allocations: 64.31 kB / 0.57 GB, free: 90.76 MB / 462.1 MB Notification: Performance of pre-optimization done (n=305): time 5.37e-06/1.034, allocations: 5.453 kB / 0.57 GB, free: 90.75 MB / 462.1 MB Notification: Performance of matching and sorting (n=324): time 0.02542/1.059, allocations: 15.82 MB / 0.5855 GB, free: 81.25 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.938e-05/1.06, allocations: 89.89 kB / 0.5856 GB, free: 81.14 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004643/1.064, allocations: 4.027 MB / 0.5895 GB, free: 77.12 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004688/1.065, allocations: 81.7 kB / 0.5896 GB, free: 77.03 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001536/1.066, allocations: 3.18 MB / 0.5927 GB, free: 74.24 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008376/1.067, allocations: 1.149 MB / 0.5938 GB, free: 73.21 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008426/1.068, allocations: 0.6809 MB / 0.5945 GB, free: 72.52 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 4.713e-05/1.068, allocations: 305.1 kB / 0.5948 GB, free: 72.22 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002142/1.07, allocations: 1.862 MB / 0.5966 GB, free: 70.36 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002426/1.073, allocations: 2.842 MB / 0.5994 GB, free: 67.12 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004865/1.077, allocations: 4.904 MB / 0.6041 GB, free: 61.8 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.786e-05/1.077, allocations: 8 kB / 0.6042 GB, free: 61.79 MB / 462.1 MB Notification: Performance of matching and sorting (n=487) (initialization): time 0.008582/1.086, allocations: 6.424 MB / 0.6104 GB, free: 55.25 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.017e-05/1.086, allocations: 23.98 kB / 0.6105 GB, free: 55.23 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.002e-05/1.086, allocations: 28.06 kB / 0.6105 GB, free: 55.2 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002361/1.089, allocations: 1.261 MB / 0.6117 GB, free: 53.89 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002815/1.091, allocations: 0.8073 MB / 0.6125 GB, free: 53.09 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01389/1.105, allocations: 22.57 MB / 0.6345 GB, free: 29 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003184/1.108, allocations: 195.9 kB / 0.6347 GB, free: 28.8 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003754/1.109, allocations: 155.9 kB / 0.6349 GB, free: 28.65 MB / 462.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 130 * Number of states: 0 () * Number of discrete variables: 9 (rheostatE.booleanStep[3].y,rheostatE.booleanStep[2].y,rheostatE.booleanStep[1].y,rheostatM.booleanStep[3].y,rheostatM.booleanStep[2].y,rheostatM.booleanStep[1].y,idealCloser.control[3],idealCloser.control[2],idealCloser.control[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (424): * Single equations (assignments): 410 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 3 * Torn equation systems: 11 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 3 systems {(2,100.0%), (2,100.0%), (2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 11 systems {(1,1,100.0%), (2,14,100.0%), (1,8,100.0%), (2,4,100.0%), (2,4,100.0%), (2,4,100.0%), (1,1,100.0%), (1,5,100.0%), (2,4,100.0%), (2,4,100.0%), (2,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.003237/1.112, allocations: 2.187 MB / 0.637 GB, free: 26.45 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008197/1.113, allocations: 473 kB / 0.6375 GB, free: 25.99 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007816/1.121, allocations: 6.045 MB / 0.6434 GB, free: 19.76 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.783e-05/1.121, allocations: 28 kB / 0.6434 GB, free: 19.73 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.339e-05/1.121, allocations: 19.94 kB / 0.6434 GB, free: 19.71 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.536e-05/1.121, allocations: 15.94 kB / 0.6434 GB, free: 19.7 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01678/1.138, allocations: 12.34 MB / 0.6555 GB, free: 7.148 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.224e-05/1.138, allocations: 4 kB / 0.6555 GB, free: 7.145 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00176/1.139, allocations: 451.8 kB / 0.6559 GB, free: 6.703 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003201/1.143, allocations: 1.63 MB / 0.6575 GB, free: 5.023 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002657/1.143, allocations: 79.97 kB / 0.6576 GB, free: 4.945 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03016/1.173, allocations: 32.89 MB / 0.6897 GB, free: 1.859 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.659e-06/1.173, allocations: 4 kB / 0.6897 GB, free: 1.855 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01412/1.187, allocations: 8.685 MB / 0.6982 GB, free: 8.922 MB / 0.4982 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002371/1.19, allocations: 0.9353 MB / 0.6991 GB, free: 7.965 MB / 0.4982 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007328/1.19, allocations: 64 kB / 0.6992 GB, free: 7.902 MB / 0.4982 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001996/1.192, allocations: 183.8 kB / 0.6993 GB, free: 7.723 MB / 0.4982 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007711/1.193, allocations: 278 kB / 0.6996 GB, free: 7.449 MB / 0.4982 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002277/1.193, allocations: 83.98 kB / 0.6997 GB, free: 7.367 MB / 0.4982 GB Notification: Performance of sorting global known variables: time 0.004664/1.198, allocations: 2.742 MB / 0.7024 GB, free: 4.621 MB / 0.4982 GB Notification: Performance of sort global known variables: time 1.7e-07/1.198, allocations: 4 kB / 0.7024 GB, free: 4.617 MB / 0.4982 GB Notification: Performance of remove unused functions: time 0.004953/1.203, allocations: 1.34 MB / 0.7037 GB, free: 3.277 MB / 0.4982 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 13 * Number of states: 16 (aimsM.inertiaRotor.w,aimsM.stator.zeroInductor.i0,aimsM.stator.core.Phi.re,aimsM.stator.core.Phi.im,aimsM.rotor.zeroInductor.i0,aimsM.rotor.core.Phi.re,aimsM.rotor.core.Phi.im,aimsE.inertiaRotor.w,aimsE.i_0_s,aimsE.idq_sr[1],aimsE.idq_sr[2],aimsE.idq_rr[1],aimsE.idq_rr[2],aimsE.i_0_r,quadraticLoadTorqueM.phi,quadraticLoadTorqueE.phi) * Number of discrete variables: 9 (idealCloser.control[1],idealCloser.control[2],idealCloser.control[3],rheostatM.booleanStep[1].y,rheostatM.booleanStep[2].y,rheostatM.booleanStep[3].y,rheostatE.booleanStep[1].y,rheostatE.booleanStep[2].y,rheostatE.booleanStep[3].y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (231): * Single equations (assignments): 214 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 16 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 16 systems {(2,14,100.0%), (1,1,100.0%), (1,8,100.0%), (2,1,100.0%), (1,1,100.0%), (1,8,100.0%), (1,5,100.0%), (2,4,100.0%), (2,4,100.0%), (2,4,100.0%), (1,8,100.0%), (2,12,100.0%), (2,4,100.0%), (2,4,100.0%), (2,4,100.0%), (2,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.01523/1.218, allocations: 9.424 MB / 0.7129 GB, free: 9.605 MB / 0.5138 GB Notification: Performance of simCode: created initialization part: time 0.0102/1.229, allocations: 6.341 MB / 0.7191 GB, free: 3.043 MB / 0.5138 GB Notification: Performance of simCode: created event and clocks part: time 8.596e-06/1.229, allocations: 320 / 0.7191 GB, free: 3.043 MB / 0.5138 GB Notification: Performance of simCode: created simulation system equations: time 0.007263/1.236, allocations: 4.793 MB / 0.7237 GB, free: 14.02 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006292/1.242, allocations: 1.366 MB / 0.7251 GB, free: 12.68 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2994/1.542, allocations: 46.94 MB / 0.7709 GB, free: 163.6 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003605/1.545, allocations: 4.492 MB / 0.7753 GB, free: 159.7 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.00286/1.548, allocations: 1.064 MB / 0.7763 GB, free: 158.7 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002461/1.551, allocations: 2.678 MB / 0.779 GB, free: 156.1 MB / 0.5294 GB Notification: Performance of SimCode: time 7.11e-07/1.551, allocations: 0 / 0.779 GB, free: 156.1 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1995/1.75, allocations: 123.1 MB / 0.8992 GB, free: 34.02 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 21.66/23.41, allocations: 11.59 kB / 0.8992 GB, free: 34.01 MB / 0.5294 GB (rm -f Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Start.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Start.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Start.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Start.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Start_res.csv --start-time 0 --stop-time 1.5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0001 Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMS_Start.fmu > Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Start.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Start_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/InductionMachines/IMS_Start/IMS_Start.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Start.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches