Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource.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.SMPM_CurrentSource,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMPM_CurrentSource",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMPM_CurrentSource",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.001222/0.001222, allocations: 113.3 kB / 17.28 MB, free: 6.312 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.001475/0.001475, allocations: 189.3 kB / 18.19 MB, free: 5.395 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.39/1.39, allocations: 205.1 MB / 224 MB, free: 12.44 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.001196/0.001197, allocations: 52.14 kB / 280.3 MB, free: 3.391 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09497/0.09617, allocations: 46.63 MB / 326.9 MB, free: 4.688 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource): time 0.01655/0.1128, allocations: 14.93 MB / 341.8 MB, free: 5.68 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01011/0.1229, allocations: 5.027 MB / 346.8 MB, free: 0.6367 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003058/0.1261, allocations: 83.62 kB / 346.9 MB, free: 0.5547 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00306/0.1291, allocations: 0.9327 MB / 347.9 MB, free: 15.62 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004232/0.1334, allocations: 1.123 MB / 349 MB, free: 14.49 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002079/0.1355, allocations: 0.8264 MB / 349.8 MB, free: 13.66 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.004836/0.1403, allocations: 3.682 MB / 353.5 MB, free: 9.961 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003549/0.1439, allocations: 3.258 MB / 356.8 MB, free: 6.637 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002524/0.1464, allocations: 1.659 MB / 358.4 MB, free: 4.973 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002978/0.1494, allocations: 2.051 MB / 360.5 MB, free: 2.914 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001065/0.1505, allocations: 476 kB / 360.9 MB, free: 2.449 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001577/0.1521, allocations: 0.6833 MB / 361.6 MB, free: 1.766 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000979/0.1531, allocations: 1.145 MB / 362.8 MB, free: 0.6172 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002155/0.1553, allocations: 2.034 MB / 364.8 MB, free: 14.57 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005955/0.1612, allocations: 6.181 MB / 371 MB, free: 8.375 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.07e-06/0.1612, allocations: 0 / 371 MB, free: 8.375 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.412e-06/0.1612, allocations: 0 / 371 MB, free: 8.375 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.556e-05/0.1613, allocations: 0 / 371 MB, free: 8.375 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 826 * Number of variables: 826 Notification: Performance of Generate backend data structure: time 0.009742/0.1711, allocations: 4.23 MB / 375.2 MB, free: 4.07 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.132e-05/0.1712, allocations: 12.03 kB / 375.2 MB, free: 4.059 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006573/0.1718, allocations: 451.3 kB / 375.7 MB, free: 3.605 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002748/0.1746, allocations: 0.6211 MB / 376.3 MB, free: 2.98 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003477/0.1781, allocations: 2.101 MB / 378.4 MB, free: 0.8242 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002148/0.1783, allocations: 242.6 kB / 378.6 MB, free: 0.5859 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004362/0.1787, allocations: 311.9 kB / 378.9 MB, free: 288 kB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2046/0.3833, allocations: 4.04 MB / 383 MB, free: 49.47 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.723e-05/0.3834, allocations: 2.438 kB / 383 MB, free: 49.47 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003016/0.3837, allocations: 126.6 kB / 383.1 MB, free: 49.37 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002481/0.384, allocations: 148.4 kB / 383.2 MB, free: 49.36 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007865/0.3919, allocations: 3.379 MB / 386.6 MB, free: 48.09 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0205/0.4124, allocations: 13.34 MB / 399.9 MB, free: 39.3 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003367/0.4158, allocations: 3.965 MB / 403.9 MB, free: 35.65 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001328/0.4172, allocations: 1.005 MB / 404.9 MB, free: 35.17 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003748/0.4209, allocations: 2.648 MB / 407.6 MB, free: 33.18 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.386e-05/0.421, allocations: 46.22 kB / 407.6 MB, free: 33.13 MB / 318.1 MB Notification: Performance of pre-optimization done (n=108): time 2.755e-06/0.421, allocations: 3.938 kB / 407.6 MB, free: 33.12 MB / 318.1 MB Notification: Performance of matching and sorting (n=142): time 0.01005/0.431, allocations: 5.997 MB / 413.6 MB, free: 27.73 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.504e-05/0.4311, allocations: 68.72 kB / 413.7 MB, free: 27.65 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002177/0.4333, allocations: 1.889 MB / 415.6 MB, free: 25.72 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 8.631e-05/0.4334, allocations: 49.7 kB / 415.6 MB, free: 25.66 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007117/0.4341, allocations: 1.5 MB / 417.1 MB, free: 24.15 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003026/0.4344, allocations: 495.9 kB / 417.6 MB, free: 23.67 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004621/0.4349, allocations: 331.2 kB / 417.9 MB, free: 23.34 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 7.032e-05/0.4349, allocations: 305.1 kB / 418.2 MB, free: 23.04 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009462/0.4359, allocations: 0.773 MB / 419 MB, free: 22.27 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001216/0.4371, allocations: 1.375 MB / 420.4 MB, free: 20.62 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002252/0.4394, allocations: 2.316 MB / 422.7 MB, free: 18.04 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.095e-05/0.4394, allocations: 8 kB / 422.7 MB, free: 18.04 MB / 318.1 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.003223/0.4426, allocations: 2.469 MB / 425.2 MB, free: 15.55 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.325e-05/0.4427, allocations: 19.94 kB / 425.2 MB, free: 15.53 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.198e-05/0.4427, allocations: 20 kB / 425.2 MB, free: 15.51 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003199/0.443, allocations: 114.5 kB / 425.3 MB, free: 15.39 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001582/0.4446, allocations: 499.2 kB / 425.8 MB, free: 14.91 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000824/0.4455, allocations: 1.414 MB / 427.2 MB, free: 13.36 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001377/0.4469, allocations: 107.9 kB / 427.3 MB, free: 13.25 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001117/0.447, allocations: 91.92 kB / 427.4 MB, free: 13.16 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 87 * 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 (232): * Single equations (assignments): 229 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(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): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001588/0.4486, allocations: 0.9812 MB / 428.4 MB, free: 12.17 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002439/0.4488, allocations: 197.6 kB / 428.6 MB, free: 11.97 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002794/0.4516, allocations: 1.969 MB / 430.5 MB, free: 9.984 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.708e-06/0.4516, allocations: 12 kB / 430.6 MB, free: 9.973 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.673e-06/0.4517, allocations: 8 kB / 430.6 MB, free: 9.965 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.203e-05/0.4517, allocations: 3.984 kB / 430.6 MB, free: 9.961 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007072/0.4588, allocations: 4.993 MB / 435.6 MB, free: 4.895 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.251e-06/0.4588, allocations: 0 / 435.6 MB, free: 4.895 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001265/0.4601, allocations: 319.8 kB / 435.9 MB, free: 4.582 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003095/0.4604, allocations: 94.52 kB / 436 MB, free: 4.48 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.321e-05/0.4605, allocations: 35.94 kB / 436 MB, free: 4.445 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007452/0.4612, allocations: 1.375 MB / 437.4 MB, free: 2.926 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.056e-06/0.4612, allocations: 4 kB / 437.4 MB, free: 2.922 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003717/0.465, allocations: 3.077 MB / 440.5 MB, free: 15.79 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009095/0.4659, allocations: 454.5 kB / 440.9 MB, free: 15.32 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002545/0.4661, allocations: 32 kB / 440.9 MB, free: 15.29 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009259/0.4671, allocations: 79.91 kB / 441 MB, free: 15.21 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001807/0.4673, allocations: 89.06 kB / 441.1 MB, free: 15.12 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.568e-05/0.4674, allocations: 40 kB / 441.1 MB, free: 15.09 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.002067/0.4694, allocations: 1.285 MB / 442.4 MB, free: 13.78 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.4695, allocations: 4 kB / 442.4 MB, free: 13.77 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.002144/0.4716, allocations: 0.536 MB / 443 MB, free: 13.24 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 2 (smpm.inertiaRotor.w,quadraticSpeedDependentTorque.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 (141): * Single equations (assignments): 138 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(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): 1 system {(1,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.005279/0.4769, allocations: 3.687 MB / 446.7 MB, free: 9.492 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.005944/0.4829, allocations: 2.829 MB / 449.5 MB, free: 6.629 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 5.56e-06/0.4829, allocations: 0 / 449.5 MB, free: 6.629 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001606/0.4845, allocations: 1.179 MB / 450.7 MB, free: 5.398 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002533/0.487, allocations: 0.5123 MB / 451.2 MB, free: 4.887 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04106/0.5281, allocations: 23.62 MB / 474.8 MB, free: 11.33 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002601/0.5308, allocations: 2.267 MB / 477.1 MB, free: 9.031 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.002249/0.533, allocations: 0.5092 MB / 477.6 MB, free: 8.52 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001754/0.5348, allocations: 1.187 MB / 478.8 MB, free: 7.332 MB / 366.1 MB Notification: Performance of SimCode: time 3.216e-06/0.5348, allocations: 4 kB / 478.8 MB, free: 7.328 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.098/0.6328, allocations: 48.31 MB / 0.5147 GB, free: 6.922 MB / 414.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001945/0.6331, allocations: 252.3 kB / 0.515 GB, free: 6.668 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.916/3.549, allocations: 4.062 kB / 0.515 GB, free: 6.664 MB / 414.1 MB (rm -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMPM_CurrentSource_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMPM_CurrentSource.fmu > Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/SMPM_CurrentSource/SMPM_CurrentSource.csv","../files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches