Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter.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_Inverter,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMPM_Inverter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMPM_Inverter",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.001577/0.001577, allocations: 113.2 kB / 17.73 MB, free: 5.324 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.001615/0.001615, allocations: 188.2 kB / 18.67 MB, free: 4.391 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.41/1.41, allocations: 205.1 MB / 224.5 MB, free: 12.23 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.001623/0.001623, allocations: 47.92 kB / 328 MB, free: 3.785 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09098/0.09261, allocations: 46.62 MB / 374.7 MB, free: 5.051 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter): time 0.2014/0.294, allocations: 21.67 MB / 396.3 MB, free: 15.87 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0167/0.3108, allocations: 6.436 MB / 402.8 MB, free: 11.15 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006101/0.317, allocations: 124.1 kB / 402.9 MB, free: 11.12 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0063/0.3234, allocations: 1.476 MB / 404.4 MB, free: 10.3 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009833/0.3333, allocations: 2.047 MB / 406.4 MB, free: 8.957 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004955/0.3382, allocations: 1.308 MB / 407.7 MB, free: 8.125 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.01121/0.3495, allocations: 6.537 MB / 414.3 MB, free: 4.422 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008374/0.3579, allocations: 5.507 MB / 419.8 MB, free: 1.699 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007016/0.3649, allocations: 2.972 MB / 422.7 MB, free: 15.73 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007694/0.3727, allocations: 3.569 MB / 426.3 MB, free: 12.15 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002798/0.3755, allocations: 0.8164 MB / 427.1 MB, free: 11.34 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004379/0.3799, allocations: 1.097 MB / 428.2 MB, free: 10.24 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003048/0.383, allocations: 2.026 MB / 430.3 MB, free: 8.207 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.008898/0.3919, allocations: 3.536 MB / 433.8 MB, free: 4.656 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01727/0.4092, allocations: 10.82 MB / 444.6 MB, free: 9.805 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.436e-06/0.4093, allocations: 8 kB / 444.6 MB, free: 9.797 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.205e-06/0.4093, allocations: 0 / 444.6 MB, free: 9.797 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0003511/0.4097, allocations: 0 / 444.6 MB, free: 9.797 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1413 * Number of variables: 1413 Notification: Performance of Generate backend data structure: time 0.02175/0.4314, allocations: 7.067 MB / 451.7 MB, free: 2.641 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.528e-05/0.4315, allocations: 8.031 kB / 451.7 MB, free: 2.633 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002325/0.4338, allocations: 0.7367 MB / 452.4 MB, free: 1.887 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00641/0.4403, allocations: 1.102 MB / 453.5 MB, free: 0.7812 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009236/0.4495, allocations: 3.534 MB / 457.1 MB, free: 13.18 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00053/0.4501, allocations: 407.1 kB / 457.5 MB, free: 12.78 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001882/0.452, allocations: 0.5311 MB / 458 MB, free: 12.25 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02028/0.4723, allocations: 7.048 MB / 465 MB, free: 5.125 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003065/0.4726, allocations: 15.89 kB / 465.1 MB, free: 5.109 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00162/0.4743, allocations: 216 kB / 465.3 MB, free: 4.898 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004342/0.4747, allocations: 262.6 kB / 465.5 MB, free: 4.641 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01578/0.4905, allocations: 5.933 MB / 471.5 MB, free: 14.7 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04964/0.5402, allocations: 22.23 MB / 493.7 MB, free: 7.898 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01131/0.5516, allocations: 8.289 MB / 0.4902 GB, free: 14.71 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004599/0.5562, allocations: 2.156 MB / 0.4923 GB, free: 12.55 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01486/0.5711, allocations: 6.188 MB / 0.4984 GB, free: 6.234 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.852e-05/0.5713, allocations: 60.5 kB / 0.4984 GB, free: 6.164 MB / 430.1 MB Notification: Performance of pre-optimization done (n=220): time 6.011e-06/0.5713, allocations: 0 / 0.4984 GB, free: 6.164 MB / 430.1 MB Notification: Performance of matching and sorting (n=240): time 0.02696/0.5983, allocations: 11.23 MB / 0.5094 GB, free: 10.68 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.793e-05/0.5984, allocations: 81.34 kB / 0.5095 GB, free: 10.59 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006893/0.6053, allocations: 3.148 MB / 0.5125 GB, free: 7.445 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004392/0.6057, allocations: 69.7 kB / 0.5126 GB, free: 7.371 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002558/0.6083, allocations: 2.572 MB / 0.5151 GB, free: 4.777 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001176/0.6095, allocations: 0.8715 MB / 0.516 GB, free: 3.898 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001543/0.6111, allocations: 0.5578 MB / 0.5165 GB, free: 3.332 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001288/0.6112, allocations: 301.1 kB / 0.5168 GB, free: 3.035 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002754/0.614, allocations: 1.337 MB / 0.5181 GB, free: 1.695 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003682/0.6177, allocations: 2.335 MB / 0.5204 GB, free: 14.91 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006455/0.6241, allocations: 3.928 MB / 0.5242 GB, free: 10.51 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.417e-05/0.6242, allocations: 8 kB / 0.5242 GB, free: 10.5 MB / 462.1 MB Notification: Performance of matching and sorting (n=406) (initialization): time 0.009624/0.6338, allocations: 4.727 MB / 0.5288 GB, free: 5.668 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.6e-05/0.6339, allocations: 16 kB / 0.5289 GB, free: 5.652 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.564e-05/0.634, allocations: 32 kB / 0.5289 GB, free: 5.621 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001367/0.6354, allocations: 0.5291 MB / 0.5294 GB, free: 5.07 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003056/0.6384, allocations: 0.741 MB / 0.5301 GB, free: 4.328 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01163/0.6501, allocations: 10.29 MB / 0.5402 GB, free: 9.34 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003417/0.6535, allocations: 191.8 kB / 0.5404 GB, free: 9.152 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006844/0.6543, allocations: 140 kB / 0.5405 GB, free: 9.016 MB / 478.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 144 * 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 (380): * Single equations (assignments): 373 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 5 * 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): 5 systems {(3,12,100.0%), (1,3,100.0%), (1,1,100.0%), (1,1,100.0%), (1,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.004395/0.6587, allocations: 1.574 MB / 0.542 GB, free: 7.43 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001338/0.66, allocations: 365.7 kB / 0.5424 GB, free: 7.07 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008962/0.669, allocations: 4.053 MB / 0.5463 GB, free: 2.918 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.734e-05/0.6691, allocations: 24 kB / 0.5464 GB, free: 2.895 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.453e-05/0.6691, allocations: 8 kB / 0.5464 GB, free: 2.887 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.56e-05/0.6691, allocations: 11.95 kB / 0.5464 GB, free: 2.875 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.214/0.8831, allocations: 8.959 MB / 0.5551 GB, free: 145 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.258e-05/0.8832, allocations: 4.406 kB / 0.5551 GB, free: 145 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001756/0.8849, allocations: 409 kB / 0.5555 GB, free: 145 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001896/0.8868, allocations: 0.7308 MB / 0.5562 GB, free: 144.7 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002302/0.8871, allocations: 66.72 kB / 0.5563 GB, free: 144.7 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01287/0.9, allocations: 16.74 MB / 0.5726 GB, free: 130.7 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.53e-06/0.9, allocations: 5.312 kB / 0.5726 GB, free: 130.7 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01007/0.9101, allocations: 5.857 MB / 0.5784 GB, free: 128.1 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002107/0.9122, allocations: 0.7129 MB / 0.5791 GB, free: 127.8 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000876/0.9131, allocations: 65.47 kB / 0.5791 GB, free: 127.8 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001891/0.915, allocations: 137.1 kB / 0.5793 GB, free: 127.8 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004954/0.9156, allocations: 179.8 kB / 0.5794 GB, free: 127.7 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001647/0.9157, allocations: 72.39 kB / 0.5795 GB, free: 127.7 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.003466/0.9192, allocations: 2.128 MB / 0.5816 GB, free: 126.9 MB / 478.1 MB Notification: Performance of sort global known variables: time 2.51e-07/0.9192, allocations: 0 / 0.5816 GB, free: 126.9 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.004522/0.9237, allocations: 0.9984 MB / 0.5825 GB, free: 126.8 MB / 478.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 20 * Number of states: 13 (vfController.x,smpmM.inertiaRotor.w,smpmM.stator.core.Phi.re,smpmM.stator.core.Phi.im,smpmM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.re,smpmM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.im,smpmE.inertiaRotor.w,smpmE.idq_sr[1],smpmE.idq_sr[2],smpmE.idq_rr[2],smpmE.idq_dr[1],loadInertiaM.phi,loadInertiaE.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 (201): * Single equations (assignments): 193 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 8 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 8 systems {(1,5,100.0%), (3,12,100.0%), (1,3,100.0%), (1,1,100.0%), (2,1,100.0%), (1,1,100.0%), (1,8,100.0%), (2,13,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.009425/0.9332, allocations: 6.567 MB / 0.589 GB, free: 123.7 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.006093/0.9393, allocations: 4.146 MB / 0.593 GB, free: 121.7 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 9.638e-06/0.9394, allocations: 7.438 kB / 0.593 GB, free: 121.7 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003821/0.9432, allocations: 2.747 MB / 0.5957 GB, free: 120.2 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005742/0.949, allocations: 0.9581 MB / 0.5966 GB, free: 119.8 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05691/1.006, allocations: 35.66 MB / 0.6315 GB, free: 84.37 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004044/1.01, allocations: 3.4 MB / 0.6348 GB, free: 80.94 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.002982/1.013, allocations: 0.8151 MB / 0.6356 GB, free: 80.12 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002615/1.016, allocations: 2.104 MB / 0.6376 GB, free: 78.02 MB / 478.1 MB Notification: Performance of SimCode: time 8.21e-07/1.016, allocations: 0 / 0.6376 GB, free: 78.02 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1546/1.17, allocations: 88.18 MB / 0.7237 GB, free: 5.676 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 17.21/18.38, allocations: 10.62 kB / 0.7238 GB, free: 5.668 MB / 494.1 MB (rm -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMPM_Inverter_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMPM_Inverter.fmu > Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter_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_Inverter/SMPM_Inverter.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches