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.001235/0.001235, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00139/0.00139, allocations: 206.4 kB / 18.58 MB, free: 4.582 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.462/1.462, allocations: 227.4 MB / 246.8 MB, free: 10.62 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001291/0.001291, allocations: 64.95 kB / 307.1 MB, free: 0.5234 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08857/0.08988, allocations: 50.54 MB / 357.6 MB, free: 13.98 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Start): time 0.1775/0.2674, allocations: 24.28 MB / 381.9 MB, free: 8.438 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01695/0.2844, allocations: 7.209 MB / 389.1 MB, free: 3.859 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01012/0.2946, allocations: 162.9 kB / 389.3 MB, free: 3.82 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.009343/0.304, allocations: 1.653 MB / 390.9 MB, free: 2.906 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01376/0.3178, allocations: 2.369 MB / 393.3 MB, free: 1.375 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00673/0.3246, allocations: 1.45 MB / 394.7 MB, free: 480 kB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.01945/0.344, allocations: 8.888 MB / 403.6 MB, free: 11.46 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01601/0.3601, allocations: 7.173 MB / 410.8 MB, free: 6.98 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.009088/0.3692, allocations: 4.054 MB / 414.8 MB, free: 2.914 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007921/0.3772, allocations: 4.858 MB / 419.7 MB, free: 14.04 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003185/0.3804, allocations: 1.102 MB / 420.8 MB, free: 12.93 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005233/0.3857, allocations: 1.41 MB / 422.2 MB, free: 11.52 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004466/0.3902, allocations: 2.739 MB / 425 MB, free: 8.777 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01216/0.4024, allocations: 4.683 MB / 429.6 MB, free: 4.074 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02015/0.4226, allocations: 14.4 MB / 444 MB, free: 5.629 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.895e-06/0.4226, allocations: 0 / 444 MB, free: 5.629 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.044e-06/0.4226, allocations: 0 / 444 MB, free: 5.629 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0004387/0.4231, allocations: 0 / 444 MB, free: 5.629 MB / 350.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.02734/0.4504, allocations: 8.959 MB / 453 MB, free: 12.58 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.269e-05/0.4505, allocations: 8.031 kB / 453 MB, free: 12.57 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002664/0.4532, allocations: 0.9218 MB / 453.9 MB, free: 11.64 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006653/0.4598, allocations: 1.35 MB / 455.3 MB, free: 10.28 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01105/0.4709, allocations: 5.293 MB / 460.6 MB, free: 4.918 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004807/0.4714, allocations: 0.498 MB / 461.1 MB, free: 4.418 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002366/0.4738, allocations: 0.6716 MB / 461.7 MB, free: 3.746 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02051/0.4943, allocations: 9.452 MB / 471.2 MB, free: 10.18 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001607/0.4945, allocations: 11.91 kB / 471.2 MB, free: 10.16 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008236/0.4953, allocations: 284 kB / 471.5 MB, free: 9.887 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002498/0.4956, allocations: 297.3 kB / 471.8 MB, free: 9.594 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01709/0.5127, allocations: 8.098 MB / 479.9 MB, free: 1.48 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05405/0.5668, allocations: 29.51 MB / 0.4974 GB, free: 3.246 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01409/0.5809, allocations: 12.31 MB / 0.5095 GB, free: 5.754 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.008268/0.5893, allocations: 3.417 MB / 0.5128 GB, free: 2.316 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02013/0.6095, allocations: 7.042 MB / 0.5197 GB, free: 11.1 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000102/0.6096, allocations: 64.97 kB / 0.5197 GB, free: 11.02 MB / 446.1 MB Notification: Performance of pre-optimization done (n=305): time 7.133e-06/0.6097, allocations: 0 / 0.5197 GB, free: 11.02 MB / 446.1 MB Notification: Performance of matching and sorting (n=324): time 0.3821/0.9918, allocations: 15.7 MB / 0.5351 GB, free: 135.8 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.558e-05/0.9919, allocations: 85.7 kB / 0.5352 GB, free: 135.7 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006777/0.9987, allocations: 4.029 MB / 0.5391 GB, free: 134.2 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0006515/0.9994, allocations: 81.86 kB / 0.5392 GB, free: 134.2 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002125/1.002, allocations: 3.101 MB / 0.5422 GB, free: 131.8 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00123/1.003, allocations: 1.09 MB / 0.5433 GB, free: 131 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001176/1.004, allocations: 0.6762 MB / 0.5439 GB, free: 130.6 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 4.175e-05/1.004, allocations: 302.2 kB / 0.5442 GB, free: 130.3 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003013/1.007, allocations: 1.864 MB / 0.546 GB, free: 129.7 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003607/1.011, allocations: 2.844 MB / 0.5488 GB, free: 127.8 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006087/1.017, allocations: 4.905 MB / 0.5536 GB, free: 125 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.6e-05/1.017, allocations: 7.875 kB / 0.5536 GB, free: 125 MB / 446.1 MB Notification: Performance of matching and sorting (n=487) (initialization): time 0.009866/1.027, allocations: 6.406 MB / 0.5599 GB, free: 122.2 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.228e-05/1.027, allocations: 23.81 kB / 0.5599 GB, free: 122.2 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.766e-05/1.027, allocations: 27.28 kB / 0.5599 GB, free: 122.2 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002625/1.029, allocations: 1.273 MB / 0.5612 GB, free: 121.8 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002821/1.032, allocations: 0.8112 MB / 0.5619 GB, free: 121.7 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0149/1.047, allocations: 22.57 MB / 0.584 GB, free: 102.7 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004452/1.052, allocations: 201.1 kB / 0.5842 GB, free: 102.7 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004382/1.052, allocations: 147.1 kB / 0.5843 GB, free: 102.6 MB / 446.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.00395/1.056, allocations: 2.204 MB / 0.5865 GB, free: 101.2 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001055/1.057, allocations: 454.5 kB / 0.5869 GB, free: 100.8 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008113/1.065, allocations: 6.038 MB / 0.5928 GB, free: 94.55 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.729e-05/1.065, allocations: 32 kB / 0.5928 GB, free: 94.52 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.129e-05/1.065, allocations: 16 kB / 0.5928 GB, free: 94.5 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.45e-05/1.065, allocations: 19.88 kB / 0.5929 GB, free: 94.48 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01762/1.083, allocations: 12.34 MB / 0.6049 GB, free: 81.93 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.11e-05/1.083, allocations: 7.938 kB / 0.6049 GB, free: 81.92 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001828/1.085, allocations: 443.4 kB / 0.6053 GB, free: 81.48 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003293/1.088, allocations: 1.626 MB / 0.6069 GB, free: 79.81 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002784/1.089, allocations: 79.92 kB / 0.607 GB, free: 79.73 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02195/1.11, allocations: 32.9 MB / 0.6391 GB, free: 44.64 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.158e-06/1.111, allocations: 3.938 kB / 0.6391 GB, free: 44.63 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01167/1.122, allocations: 8.643 MB / 0.6476 GB, free: 35.74 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002502/1.125, allocations: 0.9205 MB / 0.6485 GB, free: 34.8 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007722/1.126, allocations: 68 kB / 0.6485 GB, free: 34.73 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002141/1.128, allocations: 179.8 kB / 0.6487 GB, free: 34.56 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006541/1.128, allocations: 277.9 kB / 0.649 GB, free: 34.29 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000191/1.129, allocations: 91.97 kB / 0.6491 GB, free: 34.2 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003638/1.132, allocations: 2.742 MB / 0.6517 GB, free: 31.45 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.7e-07/1.132, allocations: 4 kB / 0.6517 GB, free: 31.45 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.005507/1.138, allocations: 1.337 MB / 0.6531 GB, free: 30.11 MB / 446.1 MB 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.01136/1.149, allocations: 9.411 MB / 0.6622 GB, free: 20.45 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.01587/1.165, allocations: 9.428 MB / 0.6714 GB, free: 10.84 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.005e-05/1.165, allocations: 0.5 kB / 0.6715 GB, free: 10.84 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005928/1.171, allocations: 4.773 MB / 0.6761 GB, free: 5.852 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006268/1.177, allocations: 1.358 MB / 0.6774 GB, free: 4.52 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3065/1.484, allocations: 57.88 MB / 0.734 GB, free: 139.5 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005029/1.489, allocations: 4.496 MB / 0.7384 GB, free: 138 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.00363/1.493, allocations: 1.054 MB / 0.7394 GB, free: 137.9 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003226/1.496, allocations: 2.682 MB / 0.742 GB, free: 135.7 MB / 478.1 MB Notification: Performance of SimCode: time 1.543e-06/1.496, allocations: 6.969 kB / 0.742 GB, free: 135.7 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1795/1.675, allocations: 124.3 MB / 0.8634 GB, free: 23.31 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.52/14.2, allocations: 23.42 kB / 0.8634 GB, free: 23.29 MB / 478.1 MB (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