Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_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.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMR_CurrentSource",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMR_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.001482/0.001482, allocations: 105.5 kB / 17.73 MB, free: 5.328 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.001711/0.001711, allocations: 188.1 kB / 18.66 MB, free: 4.398 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.271/1.271, allocations: 205.1 MB / 224.5 MB, free: 12.22 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.001352/0.001352, allocations: 55.91 kB / 328.1 MB, free: 3.754 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08265/0.08401, allocations: 46.62 MB / 374.7 MB, free: 5.023 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource): time 0.204/0.288, allocations: 40.02 MB / 414.7 MB, free: 2.379 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.02371/0.3118, allocations: 10.55 MB / 425.3 MB, free: 10.2 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.008949/0.3208, allocations: 262.2 kB / 425.5 MB, free: 10.14 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02053/0.3414, allocations: 8.548 MB / 434.1 MB, free: 3.645 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01457/0.356, allocations: 3.631 MB / 437.7 MB, free: 0.7148 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007436/0.3634, allocations: 2.389 MB / 440.1 MB, free: 14.34 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01794/0.3814, allocations: 13.42 MB / 453.5 MB, free: 0.8711 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03631/0.4177, allocations: 25.37 MB / 478.9 MB, free: 7.348 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01164/0.4294, allocations: 7.059 MB / 485.9 MB, free: 276 kB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01289/0.4423, allocations: 8.059 MB / 494 MB, free: 8.184 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.005917/0.4483, allocations: 1.992 MB / 496 MB, free: 6.191 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007718/0.456, allocations: 2.374 MB / 498.4 MB, free: 3.816 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.006863/0.4629, allocations: 4.15 MB / 0.4907 GB, free: 15.66 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01494/0.4779, allocations: 7.824 MB / 0.4984 GB, free: 7.801 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.03242/0.5104, allocations: 26.43 MB / 0.5242 GB, free: 13.3 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.496e-06/0.5104, allocations: 0 / 0.5242 GB, free: 13.3 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.723e-06/0.5104, allocations: 0 / 0.5242 GB, free: 13.3 MB / 462.1 MB Notification: Performance of Transformations before backend: time 0.0007979/0.5112, allocations: 0 / 0.5242 GB, free: 13.3 MB / 462.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3512 * Number of variables: 3512 Notification: Performance of Generate backend data structure: time 0.04597/0.5572, allocations: 15.59 MB / 0.5394 GB, free: 13.59 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.359e-05/0.5573, allocations: 12.02 kB / 0.5394 GB, free: 13.58 MB / 478.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006239/0.5635, allocations: 1.806 MB / 0.5412 GB, free: 11.76 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0509/0.6145, allocations: 9.11 MB / 0.5501 GB, free: 2.625 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.3442/0.9587, allocations: 7.505 MB / 0.5574 GB, free: 132.2 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009559/0.9597, allocations: 0.9441 MB / 0.5583 GB, free: 131.7 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004512/0.9642, allocations: 1.243 MB / 0.5595 GB, free: 131.3 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04571/1.01, allocations: 20.15 MB / 0.5792 GB, free: 123.5 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004485/1.01, allocations: 25.47 kB / 0.5792 GB, free: 123.5 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003291/1.014, allocations: 0.5173 MB / 0.5797 GB, free: 123.1 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006031/1.014, allocations: 0.7367 MB / 0.5805 GB, free: 123 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0356/1.05, allocations: 18.97 MB / 0.599 GB, free: 110.8 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09769/1.148, allocations: 62.64 MB / 0.6602 GB, free: 47.15 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03268/1.18, allocations: 56.98 MB / 0.7158 GB, free: 15.29 MB / 0.4982 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.007114/1.188, allocations: 4.094 MB / 0.7198 GB, free: 11.17 MB / 0.4982 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02494/1.213, allocations: 11.35 MB / 0.7309 GB, free: 15.81 MB / 0.5138 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.093e-05/1.213, allocations: 69.31 kB / 0.731 GB, free: 15.73 MB / 0.5138 GB Notification: Performance of pre-optimization done (n=349): time 6.142e-06/1.213, allocations: 3.938 kB / 0.731 GB, free: 15.73 MB / 0.5138 GB Notification: Performance of matching and sorting (n=389): time 0.2478/1.46, allocations: 18.13 MB / 0.7487 GB, free: 166.3 MB / 0.5138 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.228e-05/1.461, allocations: 91.56 kB / 0.7488 GB, free: 166.3 MB / 0.5138 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007661/1.468, allocations: 5.463 MB / 0.7541 GB, free: 165 MB / 0.5138 GB Notification: Performance of collectPreVariables (initialization): time 0.0006795/1.469, allocations: 94.58 kB / 0.7542 GB, free: 164.9 MB / 0.5138 GB Notification: Performance of collectInitialEqns (initialization): time 0.003373/1.472, allocations: 5.881 MB / 0.7599 GB, free: 161.5 MB / 0.5138 GB Notification: Performance of collectInitialBindings (initialization): time 0.001486/1.474, allocations: 1.373 MB / 0.7613 GB, free: 160.5 MB / 0.5138 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002364/1.476, allocations: 1.507 MB / 0.7627 GB, free: 159.7 MB / 0.5138 GB Notification: Performance of setup shared object (initialization): time 4.668e-05/1.476, allocations: 305.8 kB / 0.763 GB, free: 159.4 MB / 0.5138 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004699/1.481, allocations: 3.08 MB / 0.766 GB, free: 158.3 MB / 0.5138 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007265/1.488, allocations: 6.752 MB / 0.7726 GB, free: 152.3 MB / 0.5138 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01216/1.5, allocations: 10.59 MB / 0.783 GB, free: 144.1 MB / 0.5138 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001812/1.501, allocations: 34.97 kB / 0.783 GB, free: 144.1 MB / 0.5138 GB Notification: Performance of matching and sorting (n=982) (initialization): time 0.0175/1.518, allocations: 10.8 MB / 0.7936 GB, free: 139.7 MB / 0.5138 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001037/1.518, allocations: 59.5 kB / 0.7936 GB, free: 139.7 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002391/1.519, allocations: 124.3 kB / 0.7937 GB, free: 139.7 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002562/1.521, allocations: 0.9776 MB / 0.7947 GB, free: 139.5 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006238/1.527, allocations: 1.811 MB / 0.7965 GB, free: 139.3 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009919/1.537, allocations: 10.24 MB / 0.8065 GB, free: 132.2 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006175/1.543, allocations: 444.8 kB / 0.8069 GB, free: 132.1 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001231/1.545, allocations: 421.9 kB / 0.8073 GB, free: 132 MB / 0.5138 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 572 * 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 (933): * Single equations (assignments): 928 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 3 * 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): 3 systems {(1,1,100.0%), (1,1,100.0%), (8,38,65.6%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.008089/1.553, allocations: 4.459 MB / 0.8116 GB, free: 129.8 MB / 0.5138 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001804/1.555, allocations: 0.542 MB / 0.8122 GB, free: 129.5 MB / 0.5138 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01181/1.567, allocations: 6.52 MB / 0.8185 GB, free: 124.4 MB / 0.5138 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.255e-05/1.567, allocations: 40 kB / 0.8186 GB, free: 124.4 MB / 0.5138 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.768e-05/1.567, allocations: 8 kB / 0.8186 GB, free: 124.4 MB / 0.5138 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.999e-05/1.567, allocations: 22.22 kB / 0.8186 GB, free: 124.4 MB / 0.5138 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03069/1.597, allocations: 15.95 MB / 0.8342 GB, free: 110.1 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.188e-05/1.597, allocations: 7.938 kB / 0.8342 GB, free: 110.1 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003416/1.601, allocations: 0.7502 MB / 0.8349 GB, free: 109.4 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002145/1.603, allocations: 0.7964 MB / 0.8357 GB, free: 108.6 MB / 0.5138 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005493/1.604, allocations: 83.98 kB / 0.8358 GB, free: 108.5 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008817/1.612, allocations: 9.336 MB / 0.8449 GB, free: 98.75 MB / 0.5138 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.508e-06/1.612, allocations: 4 kB / 0.8449 GB, free: 98.74 MB / 0.5138 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01389/1.626, allocations: 9.538 MB / 0.8542 GB, free: 89.1 MB / 0.5138 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003065/1.629, allocations: 1.072 MB / 0.8552 GB, free: 88 MB / 0.5138 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001516/1.631, allocations: 75.94 kB / 0.8553 GB, free: 87.93 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003325/1.634, allocations: 223.7 kB / 0.8555 GB, free: 87.71 MB / 0.5138 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007261/1.635, allocations: 266.7 kB / 0.8558 GB, free: 87.45 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004281/1.636, allocations: 110.8 kB / 0.8559 GB, free: 87.34 MB / 0.5138 GB Notification: Performance of sorting global known variables: time 0.006242/1.642, allocations: 3.603 MB / 0.8594 GB, free: 83.76 MB / 0.5138 GB Notification: Performance of sort global known variables: time 3.9e-07/1.642, allocations: 0 / 0.8594 GB, free: 83.76 MB / 0.5138 GB Notification: Performance of remove unused functions: time 0.008559/1.65, allocations: 1.987 MB / 0.8614 GB, free: 81.78 MB / 0.5138 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 13 * Number of states: 4 (inertiaLoad.w,quadraticSpeedDependentTorque.phi,inertiaLoadQS.w,quadraticSpeedDependentTorqueQS.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 (368): * Single equations (assignments): 363 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 3 * 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): 3 systems {(1,1,100.0%), (1,1,100.0%), (8,38,65.6%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.01472/1.665, allocations: 10.25 MB / 0.8714 GB, free: 71.41 MB / 0.5138 GB Notification: Performance of simCode: created initialization part: time 0.0115/1.677, allocations: 8.065 MB / 0.8792 GB, free: 63.29 MB / 0.5138 GB Notification: Performance of simCode: created event and clocks part: time 7.745e-06/1.677, allocations: 4 kB / 0.8792 GB, free: 63.28 MB / 0.5138 GB Notification: Performance of simCode: created simulation system equations: time 0.005334/1.682, allocations: 3.533 MB / 0.8827 GB, free: 59.67 MB / 0.5138 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008147/1.69, allocations: 1.313 MB / 0.884 GB, free: 58.37 MB / 0.5138 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3027/1.993, allocations: 70.19 MB / 0.9525 GB, free: 173.9 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01024/2.003, allocations: 7.601 MB / 0.9599 GB, free: 171.4 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.006293/2.01, allocations: 2.353 MB / 0.9622 GB, free: 171.2 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006275/2.016, allocations: 4.519 MB / 0.9667 GB, free: 167.3 MB / 0.5294 GB Notification: Performance of SimCode: time 8.92e-07/2.016, allocations: 0 / 0.9667 GB, free: 167.3 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.7021/2.718, allocations: 153.5 MB / 1.117 GB, free: 26.15 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 22.39/25.11, allocations: 0.875 kB / 1.117 GB, free: 26.15 MB / 0.5294 GB (rm -f Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMR_CurrentSource_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMR_CurrentSource.fmu > Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Magnetic/QuasiStatic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMR_CurrentSource/SMR_CurrentSource.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches