Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_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.SMR_Inverter,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMR_Inverter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMR_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.001542/0.001542, allocations: 97.98 kB / 17.58 MB, free: 5.418 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.001726/0.001725, allocations: 192 kB / 18.51 MB, free: 4.508 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.402/1.402, allocations: 205.1 MB / 224.4 MB, free: 12.3 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.001363/0.001363, allocations: 51.92 kB / 280.8 MB, free: 3.07 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09238/0.09376, allocations: 46.63 MB / 327.4 MB, free: 4.371 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter): time 0.02874/0.1226, allocations: 20.24 MB / 347.6 MB, free: 32 kB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01651/0.1392, allocations: 5.947 MB / 353.6 MB, free: 10.06 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006113/0.1454, allocations: 115.5 kB / 353.7 MB, free: 9.949 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005521/0.1509, allocations: 1.35 MB / 355 MB, free: 8.59 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009692/0.1607, allocations: 1.906 MB / 356.9 MB, free: 6.672 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005668/0.1664, allocations: 1.236 MB / 358.2 MB, free: 5.434 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.009517/0.1759, allocations: 6.08 MB / 364.3 MB, free: 15.33 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.009694/0.1856, allocations: 5.37 MB / 369.6 MB, free: 9.871 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005513/0.1912, allocations: 2.819 MB / 372.4 MB, free: 7.043 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006123/0.1974, allocations: 3.382 MB / 375.8 MB, free: 3.648 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002379/0.1998, allocations: 0.7812 MB / 376.6 MB, free: 2.867 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0036/0.2034, allocations: 1.074 MB / 377.7 MB, free: 1.793 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.1715/0.375, allocations: 1.937 MB / 379.6 MB, free: 21.75 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.007019/0.382, allocations: 3.356 MB / 383 MB, free: 21.52 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01454/0.3966, allocations: 10.19 MB / 393.2 MB, free: 20.47 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.556e-06/0.3967, allocations: 0 / 393.2 MB, free: 20.47 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.434e-06/0.3967, allocations: 0 / 393.2 MB, free: 20.47 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.00048/0.3972, allocations: 1.375 kB / 393.2 MB, free: 20.47 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: 1347 * Number of variables: 1347 Notification: Performance of Generate backend data structure: time 0.02305/0.4203, allocations: 6.586 MB / 399.8 MB, free: 17.62 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.056e-05/0.4203, allocations: 13.8 kB / 399.8 MB, free: 17.62 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002624/0.423, allocations: 0.6967 MB / 400.5 MB, free: 17.43 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006297/0.4293, allocations: 1.019 MB / 401.5 MB, free: 16.96 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006691/0.436, allocations: 3.3 MB / 404.8 MB, free: 14.78 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002926/0.4363, allocations: 398.8 kB / 405.2 MB, free: 14.6 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001346/0.4377, allocations: 0.511 MB / 405.7 MB, free: 14.42 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01152/0.4492, allocations: 6.758 MB / 412.4 MB, free: 10.49 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001182/0.4493, allocations: 19.7 kB / 412.5 MB, free: 10.48 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004932/0.4498, allocations: 207 kB / 412.7 MB, free: 10.32 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000189/0.45, allocations: 240.9 kB / 412.9 MB, free: 10.29 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01001/0.4601, allocations: 5.742 MB / 418.6 MB, free: 7.301 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03789/0.498, allocations: 21.11 MB / 439.7 MB, free: 2.352 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009681/0.5077, allocations: 8.541 MB / 448.3 MB, free: 8.859 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003727/0.5115, allocations: 2.112 MB / 450.4 MB, free: 6.754 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01394/0.5254, allocations: 5.944 MB / 456.3 MB, free: 0.7617 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.959e-05/0.5256, allocations: 52.56 kB / 456.4 MB, free: 0.7031 MB / 350.1 MB Notification: Performance of pre-optimization done (n=205): time 5.22e-06/0.5256, allocations: 0 / 456.4 MB, free: 0.7031 MB / 350.1 MB Notification: Performance of matching and sorting (n=222): time 0.02476/0.5503, allocations: 10.26 MB / 466.7 MB, free: 6.254 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.331e-05/0.5504, allocations: 77.34 kB / 466.7 MB, free: 6.164 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006574/0.557, allocations: 2.904 MB / 469.6 MB, free: 3.25 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004311/0.5575, allocations: 61.7 kB / 469.7 MB, free: 3.184 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002118/0.5596, allocations: 2.362 MB / 472.1 MB, free: 0.8047 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009822/0.5606, allocations: 0.7694 MB / 472.8 MB, free: 44 kB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001394/0.562, allocations: 0.5191 MB / 473.3 MB, free: 15.52 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001112/0.5622, allocations: 305.1 kB / 473.6 MB, free: 15.21 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002505/0.5647, allocations: 1.267 MB / 474.9 MB, free: 13.95 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002965/0.5676, allocations: 2.18 MB / 477.1 MB, free: 11.38 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005341/0.573, allocations: 3.658 MB / 480.7 MB, free: 7.441 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.107e-05/0.5731, allocations: 8 kB / 480.8 MB, free: 7.434 MB / 382.1 MB Notification: Performance of matching and sorting (n=373) (initialization): time 0.008237/0.5813, allocations: 4.452 MB / 485.2 MB, free: 3.098 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.562e-05/0.5814, allocations: 16 kB / 485.2 MB, free: 3.082 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.429e-05/0.5814, allocations: 32.03 kB / 485.3 MB, free: 3.051 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001222/0.5827, allocations: 0.5199 MB / 485.8 MB, free: 2.516 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002642/0.5853, allocations: 0.6895 MB / 486.5 MB, free: 1.867 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008997/0.5943, allocations: 10.19 MB / 496.7 MB, free: 7.043 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002999/0.5974, allocations: 175.7 kB / 496.8 MB, free: 6.871 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000464/0.5978, allocations: 128.2 kB / 496.9 MB, free: 6.746 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 129 * 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 (348): * Single equations (assignments): 341 * 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,11,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.003501/0.6013, allocations: 1.521 MB / 498.5 MB, free: 5.258 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001045/0.6024, allocations: 316.1 kB / 498.8 MB, free: 4.945 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007763/0.6102, allocations: 3.868 MB / 0.4909 GB, free: 1.012 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.61e-05/0.6102, allocations: 24 kB / 0.4909 GB, free: 0.9883 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.839e-05/0.6103, allocations: 11.94 kB / 0.4909 GB, free: 0.9766 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.755e-05/0.6103, allocations: 11.95 kB / 0.4909 GB, free: 0.9648 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01693/0.6272, allocations: 8.486 MB / 0.4992 GB, free: 8.395 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.181e-05/0.6273, allocations: 4 kB / 0.4992 GB, free: 8.391 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001713/0.629, allocations: 381.1 kB / 0.4996 GB, free: 8.035 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001879/0.6309, allocations: 0.7384 MB / 0.5003 GB, free: 7.277 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002262/0.6312, allocations: 59.97 kB / 0.5003 GB, free: 7.219 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01487/0.646, allocations: 16.62 MB / 0.5166 GB, free: 5.562 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.003e-06/0.6461, allocations: 8.125 kB / 0.5166 GB, free: 5.555 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009636/0.6557, allocations: 5.55 MB / 0.522 GB, free: 15.89 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001746/0.6575, allocations: 0.6609 MB / 0.5227 GB, free: 15.21 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009084/0.6584, allocations: 55.92 kB / 0.5227 GB, free: 15.15 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00202/0.6604, allocations: 131.9 kB / 0.5228 GB, free: 15.02 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004372/0.6609, allocations: 171.8 kB / 0.523 GB, free: 14.86 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001855/0.6611, allocations: 63.98 kB / 0.5231 GB, free: 14.8 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003705/0.6648, allocations: 1.971 MB / 0.525 GB, free: 12.83 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.4e-07/0.6648, allocations: 0 / 0.525 GB, free: 12.83 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.004378/0.6692, allocations: 0.9337 MB / 0.5259 GB, free: 11.89 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 13 (vfController.x,smrM.inertiaRotor.w,smrM.stator.core.Phi.re,smrM.stator.core.Phi.im,smrM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.re,smrM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.im,smrE.inertiaRotor.w,smrE.idq_sr[1],smrE.idq_sr[2],smrE.idq_dr[1],smrE.idq_dr[2],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 (185): * Single equations (assignments): 177 * 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,11,100.0%), (1,3,100.0%), (1,1,100.0%), (2,1,100.0%), (1,1,100.0%), (1,8,100.0%), (2,12,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.009446/0.6787, allocations: 6.243 MB / 0.532 GB, free: 5.551 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.01045/0.6891, allocations: 5.407 MB / 0.5373 GB, free: 164 kB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.022e-05/0.6892, allocations: 4.188 kB / 0.5373 GB, free: 160 kB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.1916/0.8807, allocations: 2.643 MB / 0.5399 GB, free: 167.3 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004335/0.8851, allocations: 0.8491 MB / 0.5407 GB, free: 167.2 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04866/0.9338, allocations: 39.61 MB / 0.5794 GB, free: 139.2 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002404/0.9362, allocations: 3.294 MB / 0.5826 GB, free: 135.9 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.00264/0.9389, allocations: 0.7578 MB / 0.5833 GB, free: 135.1 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002587/0.9415, allocations: 1.94 MB / 0.5852 GB, free: 133.2 MB / 446.1 MB Notification: Performance of SimCode: time 1.002e-06/0.9415, allocations: 4 kB / 0.5852 GB, free: 133.2 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1257/1.067, allocations: 82.78 MB / 0.6661 GB, free: 50.2 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.03/12.1, allocations: 8.688 kB / 0.6661 GB, free: 50.2 MB / 446.1 MB (rm -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMR_Inverter_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMR_Inverter.fmu > Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_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/SMR_Inverter/SMR_Inverter.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches