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.0012/0.0012, allocations: 121.5 kB / 17.78 MB, free: 5.242 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001349/0.001349, allocations: 199.9 kB / 18.73 MB, free: 4.301 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.5 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001305/0.001306, allocations: 59.91 kB / 358.2 MB, free: 13.4 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2565/0.2578, allocations: 50.54 MB / 408.8 MB, free: 1.535 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Start): time 0.02304/0.2809, allocations: 24.31 MB / 433.1 MB, free: 9.125 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01367/0.2946, allocations: 7.19 MB / 440.3 MB, free: 1.918 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00513/0.2998, allocations: 163.4 kB / 440.4 MB, free: 1.758 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005141/0.3049, allocations: 1.728 MB / 442.2 MB, free: 20 kB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008674/0.3137, allocations: 2.47 MB / 444.6 MB, free: 13.54 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005008/0.3187, allocations: 1.464 MB / 446.1 MB, free: 12.08 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01178/0.3305, allocations: 8.924 MB / 455 MB, free: 3.117 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01186/0.3424, allocations: 7.17 MB / 462.2 MB, free: 11.85 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006859/0.3493, allocations: 4.097 MB / 466.3 MB, free: 7.742 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007825/0.3572, allocations: 4.865 MB / 471.2 MB, free: 2.859 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003074/0.3603, allocations: 1.102 MB / 472.3 MB, free: 1.758 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004637/0.365, allocations: 1.394 MB / 473.6 MB, free: 372 kB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00459/0.3696, allocations: 2.723 MB / 476.4 MB, free: 13.63 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.009599/0.3793, allocations: 4.687 MB / 481.1 MB, free: 8.926 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01994/0.3992, allocations: 14.55 MB / 495.6 MB, free: 10.32 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.536e-06/0.3993, allocations: 0 / 495.6 MB, free: 10.32 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.575e-06/0.3993, allocations: 4 kB / 495.6 MB, free: 10.32 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0005303/0.3998, allocations: 4 kB / 495.6 MB, free: 10.32 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.02729/0.4271, allocations: 9.159 MB / 0.4929 GB, free: 1.059 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.577e-05/0.4272, allocations: 12.03 kB / 0.493 GB, free: 1.047 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003362/0.4306, allocations: 0.9218 MB / 0.4939 GB, free: 120 kB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007821/0.4384, allocations: 1.373 MB / 0.4952 GB, free: 14.74 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0146/0.4531, allocations: 5.488 MB / 0.5006 GB, free: 9.184 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006491/0.4538, allocations: 0.4991 MB / 0.501 GB, free: 8.684 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002913/0.4567, allocations: 0.664 MB / 0.5017 GB, free: 8.02 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02549/0.4822, allocations: 9.457 MB / 0.5109 GB, free: 14.44 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003733/0.4826, allocations: 11.95 kB / 0.5109 GB, free: 14.43 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002208/0.4849, allocations: 279.9 kB / 0.5112 GB, free: 14.16 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003251/0.4852, allocations: 297.4 kB / 0.5115 GB, free: 13.86 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01865/0.5039, allocations: 8.087 MB / 0.5194 GB, free: 5.762 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5208/1.025, allocations: 29.25 MB / 0.548 GB, free: 103.8 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0097/1.034, allocations: 12.3 MB / 0.56 GB, free: 95.38 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005205/1.04, allocations: 3.4 MB / 0.5633 GB, free: 94.16 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01174/1.051, allocations: 7.033 MB / 0.5702 GB, free: 90.77 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.325e-05/1.052, allocations: 68.06 kB / 0.5702 GB, free: 90.7 MB / 462.1 MB Notification: Performance of pre-optimization done (n=305): time 4.879e-06/1.052, allocations: 0 / 0.5702 GB, free: 90.7 MB / 462.1 MB Notification: Performance of matching and sorting (n=324): time 0.02681/1.078, allocations: 15.82 MB / 0.5857 GB, free: 81.04 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.842e-05/1.078, allocations: 85.95 kB / 0.5857 GB, free: 80.94 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004955/1.083, allocations: 4.033 MB / 0.5897 GB, free: 76.91 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003968/1.084, allocations: 81.7 kB / 0.5898 GB, free: 76.82 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001442/1.085, allocations: 3.179 MB / 0.5929 GB, free: 74.03 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008378/1.086, allocations: 1.146 MB / 0.594 GB, free: 73 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008923/1.087, allocations: 0.6848 MB / 0.5947 GB, free: 72.31 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 5.163e-05/1.087, allocations: 301.1 kB / 0.5949 GB, free: 72.02 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002214/1.089, allocations: 1.866 MB / 0.5968 GB, free: 70.15 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00246/1.092, allocations: 2.835 MB / 0.5995 GB, free: 66.92 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004796/1.097, allocations: 4.904 MB / 0.6043 GB, free: 61.59 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.416e-05/1.097, allocations: 8 kB / 0.6043 GB, free: 61.58 MB / 462.1 MB Notification: Performance of matching and sorting (n=487) (initialization): time 0.008271/1.105, allocations: 6.44 MB / 0.6106 GB, free: 55.03 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.103e-05/1.105, allocations: 16 kB / 0.6106 GB, free: 55.01 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.905e-05/1.105, allocations: 32.09 kB / 0.6107 GB, free: 54.98 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002368/1.107, allocations: 1.257 MB / 0.6119 GB, free: 53.68 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002764/1.11, allocations: 0.8073 MB / 0.6127 GB, free: 52.87 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01391/1.124, allocations: 22.56 MB / 0.6347 GB, free: 28.79 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003903/1.128, allocations: 199.9 kB / 0.6349 GB, free: 28.59 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000469/1.129, allocations: 158.5 kB / 0.6351 GB, free: 28.44 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.003699/1.132, allocations: 2.199 MB / 0.6372 GB, free: 26.23 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001058/1.133, allocations: 473 kB / 0.6377 GB, free: 25.77 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008258/1.142, allocations: 6.042 MB / 0.6436 GB, free: 19.54 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.752e-05/1.142, allocations: 32 kB / 0.6436 GB, free: 19.51 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.289e-05/1.142, allocations: 16 kB / 0.6436 GB, free: 19.5 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.851e-05/1.142, allocations: 19.88 kB / 0.6436 GB, free: 19.48 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01733/1.159, allocations: 12.34 MB / 0.6557 GB, free: 6.934 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.146e-05/1.159, allocations: 4 kB / 0.6557 GB, free: 6.93 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001848/1.161, allocations: 459.7 kB / 0.6561 GB, free: 6.48 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003349/1.164, allocations: 1.625 MB / 0.6577 GB, free: 4.805 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002558/1.165, allocations: 75.91 kB / 0.6578 GB, free: 4.73 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03029/1.195, allocations: 32.89 MB / 0.6899 GB, free: 1.637 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.101e-06/1.195, allocations: 7.938 kB / 0.6899 GB, free: 1.629 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01665/1.212, allocations: 8.686 MB / 0.6984 GB, free: 8.695 MB / 0.4982 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003117/1.215, allocations: 0.9314 MB / 0.6993 GB, free: 7.742 MB / 0.4982 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001441/1.216, allocations: 64 kB / 0.6993 GB, free: 7.68 MB / 0.4982 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00299/1.219, allocations: 183.8 kB / 0.6995 GB, free: 7.5 MB / 0.4982 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008921/1.22, allocations: 281.9 kB / 0.6998 GB, free: 7.223 MB / 0.4982 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003475/1.22, allocations: 87.98 kB / 0.6999 GB, free: 7.137 MB / 0.4982 GB Notification: Performance of sorting global known variables: time 0.005847/1.226, allocations: 2.738 MB / 0.7025 GB, free: 4.395 MB / 0.4982 GB Notification: Performance of sort global known variables: time 4.21e-07/1.226, allocations: 4 kB / 0.7025 GB, free: 4.391 MB / 0.4982 GB Notification: Performance of remove unused functions: time 0.005973/1.232, allocations: 1.34 MB / 0.7039 GB, free: 3.051 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.01545/1.248, allocations: 9.428 MB / 0.7131 GB, free: 9.375 MB / 0.5138 GB Notification: Performance of simCode: created initialization part: time 0.0104/1.258, allocations: 6.337 MB / 0.7193 GB, free: 2.816 MB / 0.5138 GB Notification: Performance of simCode: created event and clocks part: time 1.718e-05/1.258, allocations: 4.5 kB / 0.7193 GB, free: 2.812 MB / 0.5138 GB Notification: Performance of simCode: created simulation system equations: time 0.007199/1.265, allocations: 4.794 MB / 0.7239 GB, free: 13.79 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007629/1.273, allocations: 1.36 MB / 0.7253 GB, free: 12.45 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3012/1.574, allocations: 46.93 MB / 0.7711 GB, free: 163.7 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004649/1.579, allocations: 4.493 MB / 0.7755 GB, free: 159.7 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.00308/1.582, allocations: 1.063 MB / 0.7765 GB, free: 158.7 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002692/1.585, allocations: 2.682 MB / 0.7791 GB, free: 156.1 MB / 0.5294 GB Notification: Performance of SimCode: time 1.112e-06/1.585, allocations: 0 / 0.7791 GB, free: 156.1 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1979/1.783, allocations: 123.1 MB / 0.8994 GB, free: 34.02 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 20.25/22.03, allocations: 4.188 kB / 0.8994 GB, free: 34.02 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