Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize.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/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMC_Initialize",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMC_Initialize",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.001664/0.001669, allocations: 114.4 kB / 17.74 MB, free: 5.355 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001528/0.001528, allocations: 183.1 kB / 18.66 MB, free: 4.434 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.441/1.441, allocations: 205.1 MB / 224.5 MB, free: 12.25 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001431/0.001431, allocations: 55.92 kB / 328 MB, free: 3.793 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09709/0.09853, allocations: 46.63 MB / 374.7 MB, free: 5.059 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize): time 0.2203/0.3189, allocations: 12.82 MB / 387.5 MB, free: 5.988 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.008573/0.3275, allocations: 4.276 MB / 391.8 MB, free: 3.285 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003125/0.3308, allocations: 68.38 kB / 391.8 MB, free: 3.266 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003517/0.3343, allocations: 1.012 MB / 392.8 MB, free: 2.723 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006062/0.3404, allocations: 1.331 MB / 394.2 MB, free: 1.848 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002544/0.343, allocations: 0.8628 MB / 395 MB, free: 1.289 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.007059/0.35, allocations: 4.038 MB / 399.1 MB, free: 15.19 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005439/0.3555, allocations: 3.183 MB / 402.3 MB, free: 13.82 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003977/0.3595, allocations: 1.894 MB / 404.1 MB, free: 12.87 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00476/0.3643, allocations: 2.116 MB / 406.3 MB, free: 11.81 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001945/0.3662, allocations: 0.5133 MB / 406.8 MB, free: 11.8 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003515/0.3698, allocations: 0.7115 MB / 407.5 MB, free: 11.73 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002385/0.3722, allocations: 1.138 MB / 408.6 MB, free: 11 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00636/0.3785, allocations: 2.127 MB / 410.8 MB, free: 9.562 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01287/0.3914, allocations: 6.76 MB / 417.5 MB, free: 4.559 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.474e-06/0.3915, allocations: 1.219 kB / 417.5 MB, free: 4.559 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.354e-06/0.3915, allocations: 0 / 417.5 MB, free: 4.559 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0002938/0.3918, allocations: 0 / 417.5 MB, free: 4.559 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 819 * Number of variables: 819 Notification: Performance of Generate backend data structure: time 0.01661/0.4084, allocations: 4.481 MB / 422 MB, free: 0.5078 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.821e-05/0.4085, allocations: 12.03 kB / 422 MB, free: 0.4961 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001533/0.41, allocations: 455.1 kB / 422.5 MB, free: 40 kB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005469/0.4155, allocations: 0.8261 MB / 423.3 MB, free: 15.21 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006056/0.4216, allocations: 2.336 MB / 425.6 MB, free: 12.82 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002883/0.4219, allocations: 234.8 kB / 425.8 MB, free: 12.59 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001461/0.4234, allocations: 319.9 kB / 426.2 MB, free: 12.28 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01304/0.4365, allocations: 4.258 MB / 430.4 MB, free: 7.969 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001572/0.4367, allocations: 4 kB / 430.4 MB, free: 7.965 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00105/0.4377, allocations: 124 kB / 430.5 MB, free: 7.844 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001835/0.4379, allocations: 142.2 kB / 430.7 MB, free: 7.703 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008848/0.4468, allocations: 3.659 MB / 434.3 MB, free: 4.035 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02559/0.4724, allocations: 13.38 MB / 447.7 MB, free: 6.309 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006871/0.4793, allocations: 6.854 MB / 454.6 MB, free: 14.55 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002578/0.4819, allocations: 1.421 MB / 456 MB, free: 13.12 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006944/0.4889, allocations: 3.636 MB / 459.6 MB, free: 9.402 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.315e-05/0.489, allocations: 43.56 kB / 459.7 MB, free: 9.352 MB / 382.1 MB Notification: Performance of pre-optimization done (n=124): time 2.916e-06/0.489, allocations: 0 / 459.7 MB, free: 9.352 MB / 382.1 MB Notification: Performance of matching and sorting (n=144): time 0.01419/0.5032, allocations: 6.686 MB / 466.4 MB, free: 2.473 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.393e-05/0.5033, allocations: 72.72 kB / 466.4 MB, free: 2.387 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003515/0.5068, allocations: 1.855 MB / 468.3 MB, free: 0.5312 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001222/0.5069, allocations: 49.7 kB / 468.3 MB, free: 488 kB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001073/0.508, allocations: 1.455 MB / 469.8 MB, free: 15.01 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004319/0.5084, allocations: 0.5151 MB / 470.3 MB, free: 14.49 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005169/0.509, allocations: 311.5 kB / 470.6 MB, free: 14.18 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 9.141e-05/0.5091, allocations: 301.1 kB / 470.9 MB, free: 13.88 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001223/0.5103, allocations: 0.7574 MB / 471.7 MB, free: 13.12 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001512/0.5118, allocations: 1.224 MB / 472.9 MB, free: 11.71 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002841/0.5147, allocations: 2.111 MB / 475 MB, free: 9.406 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.487e-05/0.5147, allocations: 4 kB / 475 MB, free: 9.402 MB / 398.1 MB Notification: Performance of matching and sorting (n=218) (initialization): time 0.004562/0.5193, allocations: 2.668 MB / 477.7 MB, free: 6.719 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.994e-05/0.5193, allocations: 19.88 kB / 477.7 MB, free: 6.699 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.562e-05/0.5193, allocations: 12 kB / 477.7 MB, free: 6.688 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001363/0.5207, allocations: 0.4974 MB / 478.2 MB, free: 6.184 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001437/0.5222, allocations: 383.4 kB / 478.6 MB, free: 5.809 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008481/0.5307, allocations: 6.937 MB / 485.5 MB, free: 14.59 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001738/0.5324, allocations: 75.86 kB / 485.6 MB, free: 14.51 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002534/0.5327, allocations: 75.92 kB / 485.7 MB, free: 14.44 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 62 * 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 (180): * Single equations (assignments): 178 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (7,31,61.2%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002208/0.5349, allocations: 1.052 MB / 486.7 MB, free: 13.38 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005941/0.5355, allocations: 198.7 kB / 486.9 MB, free: 13.18 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004723/0.5403, allocations: 2.496 MB / 489.4 MB, free: 10.62 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.413e-05/0.5403, allocations: 15.94 kB / 489.4 MB, free: 10.6 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.435e-05/0.5403, allocations: 8 kB / 489.4 MB, free: 10.59 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.526e-05/0.5403, allocations: 7.969 kB / 489.4 MB, free: 10.59 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01042/0.5508, allocations: 5.54 MB / 495 MB, free: 4.902 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.937e-06/0.5508, allocations: 0 / 495 MB, free: 4.902 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001049/0.5519, allocations: 219.7 kB / 495.2 MB, free: 4.688 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001387/0.5533, allocations: 0.5 MB / 495.7 MB, free: 4.172 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000127/0.5534, allocations: 35.98 kB / 495.7 MB, free: 4.137 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01202/0.5655, allocations: 11.41 MB / 0.4952 GB, free: 8.031 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.039e-06/0.5655, allocations: 3.938 kB / 0.4952 GB, free: 8.027 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00617/0.5717, allocations: 3.575 MB / 0.4987 GB, free: 4.363 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001242/0.573, allocations: 463.7 kB / 0.4992 GB, free: 3.891 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000613/0.5736, allocations: 28 kB / 0.4992 GB, free: 3.863 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001294/0.5749, allocations: 71.94 kB / 0.4993 GB, free: 3.793 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003295/0.5753, allocations: 113 kB / 0.4994 GB, free: 3.684 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001131/0.5754, allocations: 43.98 kB / 0.4994 GB, free: 3.641 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.002528/0.5779, allocations: 1.286 MB / 0.5007 GB, free: 2.363 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.5779, allocations: 0 / 0.5007 GB, free: 2.363 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.002787/0.5807, allocations: 0.5859 MB / 0.5013 GB, free: 1.777 MB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 7 (aimc.inertiaRotor.w,aimc.stator.zeroInductor.i0,aimc.stator.core.Phi.re,aimc.stator.core.Phi.im,aimc.stator.strayReluctance.Phi.re,aimc.stator.strayReluctance.Phi.im,loadInertia.phi) * 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 (102): * Single equations (assignments): 97 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 5 systems {(2,12,100.0%), (1,1,100.0%), (1,12,100.0%), (1,8,100.0%), (1,8,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.006594/0.5873, allocations: 4.176 MB / 0.5053 GB, free: 13.5 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.004767/0.5921, allocations: 2.411 MB / 0.5077 GB, free: 11.07 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 7.093e-06/0.5922, allocations: 288 / 0.5077 GB, free: 11.07 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002709/0.5949, allocations: 1.727 MB / 0.5094 GB, free: 9.273 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003507/0.5984, allocations: 0.5105 MB / 0.5099 GB, free: 8.762 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0414/0.6398, allocations: 21.35 MB / 0.5307 GB, free: 2.793 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003248/0.6431, allocations: 2.374 MB / 0.533 GB, free: 400 kB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001462/0.6446, allocations: 416.8 kB / 0.5334 GB, free: 15.98 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001571/0.6462, allocations: 1.151 MB / 0.5346 GB, free: 14.83 MB / 478.1 MB Notification: Performance of SimCode: time 9.72e-07/0.6462, allocations: 0 / 0.5346 GB, free: 14.83 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2856/0.9318, allocations: 55.19 MB / 0.5885 GB, free: 136.5 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.2/14.13, allocations: 8.734 kB / 0.5885 GB, free: 136.5 MB / 478.1 MB (rm -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize_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_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMC_Initialize.fmu > Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/AIMC_Initialize/AIMC_Initialize.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches