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.00132/0.00132, allocations: 122.8 kB / 17.79 MB, free: 5.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001342/0.001342, allocations: 202 kB / 18.73 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.347/1.347, allocations: 227.4 MB / 246.9 MB, free: 10.45 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00135/0.00135, allocations: 59.89 kB / 358.2 MB, free: 13.36 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2623/0.2637, allocations: 50.54 MB / 408.8 MB, free: 1.484 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Start): time 0.02388/0.2877, allocations: 24.31 MB / 433.1 MB, free: 9.07 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01512/0.3028, allocations: 7.189 MB / 440.3 MB, free: 1.867 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005917/0.3088, allocations: 163.4 kB / 440.4 MB, free: 1.707 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005853/0.3147, allocations: 1.724 MB / 442.2 MB, free: 15.97 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008614/0.3233, allocations: 2.466 MB / 444.6 MB, free: 13.49 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004833/0.3282, allocations: 1.475 MB / 446.1 MB, free: 12.02 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01288/0.3411, allocations: 8.923 MB / 455 MB, free: 3.062 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0116/0.3528, allocations: 7.166 MB / 462.2 MB, free: 11.8 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006833/0.3596, allocations: 4.093 MB / 466.3 MB, free: 7.695 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008227/0.3679, allocations: 4.865 MB / 471.2 MB, free: 2.812 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003763/0.3717, allocations: 1.102 MB / 472.3 MB, free: 1.711 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005526/0.3773, allocations: 1.39 MB / 473.6 MB, free: 328 kB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005165/0.3825, allocations: 2.727 MB / 476.4 MB, free: 13.59 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01164/0.3941, allocations: 4.695 MB / 481.1 MB, free: 8.871 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01916/0.4133, allocations: 14.55 MB / 495.6 MB, free: 10.27 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.107e-05/0.4134, allocations: 4 kB / 495.6 MB, free: 10.27 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.4134, allocations: 0 / 495.6 MB, free: 10.27 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0004708/0.4139, allocations: 0 / 495.6 MB, free: 10.27 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.02797/0.4418, allocations: 9.152 MB / 0.4929 GB, free: 1.012 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.651e-05/0.4419, allocations: 12.03 kB / 0.493 GB, free: 1 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003942/0.4459, allocations: 0.9256 MB / 0.4939 GB, free: 68 kB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008119/0.454, allocations: 1.377 MB / 0.4952 GB, free: 14.68 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01394/0.468, allocations: 5.484 MB / 0.5006 GB, free: 9.133 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005575/0.4686, allocations: 0.4991 MB / 0.501 GB, free: 8.633 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002519/0.4711, allocations: 0.6639 MB / 0.5017 GB, free: 7.969 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0217/0.4928, allocations: 9.457 MB / 0.5109 GB, free: 14.39 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002176/0.4931, allocations: 15.92 kB / 0.5109 GB, free: 14.38 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001251/0.4944, allocations: 279.9 kB / 0.5112 GB, free: 14.1 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002667/0.4946, allocations: 293.4 kB / 0.5115 GB, free: 13.81 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01708/0.5117, allocations: 8.094 MB / 0.5194 GB, free: 5.703 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.49/1.002, allocations: 29.26 MB / 0.548 GB, free: 103.8 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009038/1.011, allocations: 12.29 MB / 0.56 GB, free: 95.35 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004825/1.016, allocations: 3.394 MB / 0.5633 GB, free: 94.13 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01056/1.026, allocations: 7.025 MB / 0.5701 GB, free: 90.74 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.945e-05/1.026, allocations: 71.83 kB / 0.5702 GB, free: 90.67 MB / 462.1 MB Notification: Performance of pre-optimization done (n=305): time 6.311e-06/1.026, allocations: 0 / 0.5702 GB, free: 90.67 MB / 462.1 MB Notification: Performance of matching and sorting (n=324): time 0.02653/1.053, allocations: 15.82 MB / 0.5857 GB, free: 80.93 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.697e-05/1.053, allocations: 85.95 kB / 0.5857 GB, free: 80.83 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00497/1.058, allocations: 4.032 MB / 0.5897 GB, free: 76.8 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005333/1.059, allocations: 81.7 kB / 0.5898 GB, free: 76.71 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001579/1.06, allocations: 3.179 MB / 0.5929 GB, free: 73.93 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009585/1.061, allocations: 1.152 MB / 0.594 GB, free: 72.9 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009177/1.062, allocations: 0.677 MB / 0.5947 GB, free: 72.21 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 4.989e-05/1.062, allocations: 301.1 kB / 0.5949 GB, free: 71.92 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002329/1.064, allocations: 1.87 MB / 0.5968 GB, free: 70.05 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00253/1.067, allocations: 2.843 MB / 0.5995 GB, free: 66.8 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005011/1.072, allocations: 4.892 MB / 0.6043 GB, free: 61.49 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.772e-05/1.072, allocations: 13.31 kB / 0.6043 GB, free: 61.48 MB / 462.1 MB Notification: Performance of matching and sorting (n=487) (initialization): time 0.008451/1.08, allocations: 6.434 MB / 0.6106 GB, free: 54.93 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.279e-05/1.081, allocations: 20 kB / 0.6106 GB, free: 54.91 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.817e-05/1.081, allocations: 28 kB / 0.6107 GB, free: 54.88 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002341/1.083, allocations: 1.259 MB / 0.6119 GB, free: 53.59 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002755/1.086, allocations: 0.8112 MB / 0.6127 GB, free: 52.77 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01374/1.099, allocations: 22.56 MB / 0.6347 GB, free: 28.69 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003162/1.103, allocations: 200 kB / 0.6349 GB, free: 28.49 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004109/1.103, allocations: 148 kB / 0.635 GB, free: 28.35 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.003507/1.107, allocations: 2.199 MB / 0.6372 GB, free: 26.14 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009084/1.108, allocations: 473 kB / 0.6376 GB, free: 25.67 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008028/1.116, allocations: 6.047 MB / 0.6436 GB, free: 19.45 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.955e-05/1.116, allocations: 38.44 kB / 0.6436 GB, free: 19.41 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.655e-05/1.116, allocations: 16 kB / 0.6436 GB, free: 19.39 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.662e-05/1.116, allocations: 19.88 kB / 0.6436 GB, free: 19.38 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01683/1.132, allocations: 12.33 MB / 0.6557 GB, free: 6.836 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.078e-05/1.133, allocations: 4 kB / 0.6557 GB, free: 6.832 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001709/1.134, allocations: 451.7 kB / 0.6561 GB, free: 6.391 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003143/1.137, allocations: 1.617 MB / 0.6577 GB, free: 4.723 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000226/1.138, allocations: 83.91 kB / 0.6578 GB, free: 4.641 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0273/1.165, allocations: 32.89 MB / 0.6899 GB, free: 1.543 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.716e-06/1.165, allocations: 11.97 kB / 0.6899 GB, free: 1.531 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01444/1.179, allocations: 8.678 MB / 0.6984 GB, free: 8.602 MB / 0.4982 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002369/1.182, allocations: 0.9353 MB / 0.6993 GB, free: 7.645 MB / 0.4982 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009574/1.183, allocations: 67.98 kB / 0.6993 GB, free: 7.578 MB / 0.4982 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002237/1.185, allocations: 179.8 kB / 0.6995 GB, free: 7.402 MB / 0.4982 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007375/1.186, allocations: 277.9 kB / 0.6998 GB, free: 7.129 MB / 0.4982 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000227/1.186, allocations: 91.97 kB / 0.6999 GB, free: 7.039 MB / 0.4982 GB Notification: Performance of sorting global known variables: time 0.004882/1.191, allocations: 2.742 MB / 0.7025 GB, free: 4.293 MB / 0.4982 GB Notification: Performance of sort global known variables: time 2.8e-07/1.191, allocations: 0 / 0.7025 GB, free: 4.293 MB / 0.4982 GB Notification: Performance of remove unused functions: time 0.006284/1.197, allocations: 1.332 MB / 0.7038 GB, free: 2.961 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.01413/1.211, allocations: 9.431 MB / 0.7131 GB, free: 9.281 MB / 0.5138 GB Notification: Performance of simCode: created initialization part: time 0.009201/1.221, allocations: 6.336 MB / 0.7192 GB, free: 2.723 MB / 0.5138 GB Notification: Performance of simCode: created event and clocks part: time 7.344e-06/1.221, allocations: 1.875 kB / 0.7192 GB, free: 2.723 MB / 0.5138 GB Notification: Performance of simCode: created simulation system equations: time 0.006437/1.227, allocations: 4.797 MB / 0.7239 GB, free: 13.7 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005907/1.233, allocations: 1.359 MB / 0.7253 GB, free: 12.36 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3024/1.536, allocations: 46.93 MB / 0.7711 GB, free: 163.4 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00443/1.54, allocations: 4.494 MB / 0.7755 GB, free: 159.4 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.003487/1.544, allocations: 1.057 MB / 0.7765 GB, free: 158.4 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003196/1.547, allocations: 2.686 MB / 0.7791 GB, free: 155.7 MB / 0.5294 GB Notification: Performance of SimCode: time 1.433e-06/1.547, allocations: 0 / 0.7791 GB, free: 155.7 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2293/1.776, allocations: 123.1 MB / 0.8994 GB, free: 33.71 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 21.07/22.85, allocations: 7.391 kB / 0.8994 GB, free: 33.7 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.0.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