Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMR_Inverter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMR_Inverter",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001287/0.001287, allocations: 103.2 kB / 17.2 MB, free: 6.289 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001529/0.001529, allocations: 209.8 kB / 18.14 MB, free: 5.371 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.38/1.38, allocations: 227.4 MB / 246.3 MB, free: 10.76 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001244/0.001244, allocations: 66.39 kB / 306.4 MB, free: 0.9336 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1014/0.1027, allocations: 50.53 MB / 356.9 MB, free: 14.4 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter): time 0.2428/0.3456, allocations: 20.64 MB / 377.5 MB, free: 9.898 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01306/0.3587, allocations: 6.12 MB / 383.7 MB, free: 7.68 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005115/0.3638, allocations: 127.5 kB / 383.8 MB, free: 7.648 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004695/0.3686, allocations: 1.168 MB / 385 MB, free: 7.059 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008602/0.3772, allocations: 1.72 MB / 386.7 MB, free: 5.961 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004292/0.3815, allocations: 1.164 MB / 387.8 MB, free: 5.172 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.01187/0.3934, allocations: 6.749 MB / 394.6 MB, free: 2.094 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.009313/0.4028, allocations: 4.562 MB / 399.2 MB, free: 68 kB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00523/0.408, allocations: 2.377 MB / 401.5 MB, free: 14.75 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006299/0.4144, allocations: 3.2 MB / 404.7 MB, free: 12.66 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002112/0.4165, allocations: 480.6 kB / 405.2 MB, free: 12.45 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003992/0.4205, allocations: 0.7925 MB / 406 MB, free: 11.66 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003081/0.4236, allocations: 1.608 MB / 407.6 MB, free: 10.04 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006783/0.4304, allocations: 3.013 MB / 410.6 MB, free: 7.016 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01289/0.4434, allocations: 10.02 MB / 420.6 MB, free: 12.96 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.887e-06/0.4434, allocations: 7.984 kB / 420.6 MB, free: 12.96 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.853e-06/0.4434, allocations: 0 / 420.6 MB, free: 12.96 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.000385/0.4438, allocations: 0 / 420.6 MB, free: 12.96 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: 1347 * Number of variables: 1347 Notification: Performance of Generate backend data structure: time 0.02005/0.4639, allocations: 6.625 MB / 427.3 MB, free: 6.25 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.98e-05/0.4639, allocations: 8.031 kB / 427.3 MB, free: 6.242 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002227/0.4662, allocations: 0.6961 MB / 428 MB, free: 5.535 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005601/0.4718, allocations: 1.024 MB / 429 MB, free: 4.504 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008003/0.4798, allocations: 3.447 MB / 432.4 MB, free: 0.9805 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004919/0.4803, allocations: 394.8 kB / 432.8 MB, free: 0.5938 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001868/0.4822, allocations: 0.4998 MB / 433.3 MB, free: 96 kB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01866/0.5009, allocations: 6.779 MB / 440.1 MB, free: 9.246 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000265/0.5012, allocations: 11.91 kB / 440.1 MB, free: 9.234 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001596/0.5028, allocations: 208 kB / 440.3 MB, free: 9.031 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002941/0.5031, allocations: 246.2 kB / 440.6 MB, free: 8.789 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0143/0.5175, allocations: 5.748 MB / 446.3 MB, free: 3.031 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04206/0.5595, allocations: 21.18 MB / 467.5 MB, free: 13.34 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00913/0.5687, allocations: 8.807 MB / 476.3 MB, free: 3.527 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004013/0.5728, allocations: 2.218 MB / 478.5 MB, free: 1.297 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0124/0.5852, allocations: 6.216 MB / 484.7 MB, free: 10.88 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.589e-05/0.5853, allocations: 60.56 kB / 484.8 MB, free: 10.82 MB / 398.1 MB Notification: Performance of pre-optimization done (n=205): time 3.827e-06/0.5853, allocations: 0 / 484.8 MB, free: 10.82 MB / 398.1 MB Notification: Performance of matching and sorting (n=222): time 0.02129/0.6066, allocations: 10.43 MB / 495.2 MB, free: 140 kB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.692e-05/0.6067, allocations: 73.41 kB / 495.3 MB, free: 52 kB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005424/0.6121, allocations: 2.933 MB / 498.2 MB, free: 13.11 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001945/0.6123, allocations: 61.7 kB / 498.3 MB, free: 13.04 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001653/0.614, allocations: 2.365 MB / 0.4889 GB, free: 10.65 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006975/0.6147, allocations: 0.7663 MB / 0.4897 GB, free: 9.875 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009233/0.6156, allocations: 0.5138 MB / 0.4902 GB, free: 9.352 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001015/0.6157, allocations: 309.1 kB / 0.4905 GB, free: 9.047 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002216/0.6179, allocations: 1.267 MB / 0.4917 GB, free: 7.777 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00283/0.6208, allocations: 2.179 MB / 0.4938 GB, free: 5.199 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005084/0.6259, allocations: 3.668 MB / 0.4974 GB, free: 1.137 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.306e-05/0.6259, allocations: 8 kB / 0.4974 GB, free: 1.129 MB / 414.1 MB Notification: Performance of matching and sorting (n=373) (initialization): time 0.007603/0.6335, allocations: 4.462 MB / 0.5018 GB, free: 12.6 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.478e-05/0.6336, allocations: 20 kB / 0.5018 GB, free: 12.58 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.534e-05/0.6336, allocations: 28 kB / 0.5018 GB, free: 12.55 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001245/0.6349, allocations: 0.5333 MB / 0.5023 GB, free: 12 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002438/0.6373, allocations: 0.6825 MB / 0.503 GB, free: 11.31 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008821/0.6462, allocations: 9.489 MB / 0.5123 GB, free: 1.156 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002544/0.6487, allocations: 183.7 kB / 0.5124 GB, free: 0.9766 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003748/0.6491, allocations: 124 kB / 0.5126 GB, free: 0.8555 MB / 430.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 (345): * Single equations (assignments): 338 * 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,6,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.002708/0.6518, allocations: 1.52 MB / 0.514 GB, free: 15.32 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007888/0.6526, allocations: 328 kB / 0.5144 GB, free: 15 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006709/0.6594, allocations: 3.903 MB / 0.5182 GB, free: 11 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.608e-05/0.6594, allocations: 20 kB / 0.5182 GB, free: 10.98 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.435e-05/0.6594, allocations: 8 kB / 0.5182 GB, free: 10.97 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.136e-05/0.6595, allocations: 15.95 kB / 0.5182 GB, free: 10.96 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01476/0.6742, allocations: 8.522 MB / 0.5265 GB, free: 2.246 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.181e-05/0.6743, allocations: 4 kB / 0.5265 GB, free: 2.242 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001611/0.6759, allocations: 379.4 kB / 0.5269 GB, free: 1.871 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001911/0.6778, allocations: 0.7483 MB / 0.5276 GB, free: 1.098 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001933/0.678, allocations: 59.97 kB / 0.5277 GB, free: 1.039 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1765/0.8545, allocations: 15.35 MB / 0.5427 GB, free: 128.8 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.142e-06/0.8545, allocations: 5.094 kB / 0.5427 GB, free: 128.8 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009517/0.8641, allocations: 5.567 MB / 0.5481 GB, free: 126.3 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001575/0.8657, allocations: 0.654 MB / 0.5487 GB, free: 126.1 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008214/0.8665, allocations: 52.08 kB / 0.5488 GB, free: 126 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001928/0.8684, allocations: 132.2 kB / 0.5489 GB, free: 126 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004945/0.869, allocations: 176.5 kB / 0.5491 GB, free: 126 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001795/0.8691, allocations: 67.58 kB / 0.5492 GB, free: 125.9 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.00364/0.8728, allocations: 1.977 MB / 0.5511 GB, free: 125.2 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.8728, allocations: 0 / 0.5511 GB, free: 125.2 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0051/0.8779, allocations: 0.9489 MB / 0.552 GB, free: 125.1 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 (182): * Single equations (assignments): 174 * 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,6,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.009305/0.8872, allocations: 6.293 MB / 0.5582 GB, free: 122.1 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.005652/0.8929, allocations: 3.967 MB / 0.562 GB, free: 120.2 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 7.875e-06/0.8929, allocations: 3.875 kB / 0.562 GB, free: 120.2 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00354/0.8965, allocations: 2.664 MB / 0.5646 GB, free: 118.7 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0038/0.9003, allocations: 0.8071 MB / 0.5654 GB, free: 118.4 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.08224/0.9826, allocations: 41.7 MB / 0.6062 GB, free: 78.82 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006702/0.9893, allocations: 3.299 MB / 0.6094 GB, free: 75.49 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.004426/0.9938, allocations: 0.758 MB / 0.6101 GB, free: 74.73 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004288/0.9981, allocations: 1.944 MB / 0.612 GB, free: 72.79 MB / 446.1 MB Notification: Performance of SimCode: time 9.92e-07/0.9982, allocations: 0 / 0.612 GB, free: 72.79 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1222/1.12, allocations: 81.23 MB / 0.6913 GB, free: 8.102 MB / 462.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000224/1.121, allocations: 274.3 kB / 0.6916 GB, free: 7.734 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.633/4.753, allocations: 0 / 0.6916 GB, free: 7.734 MB / 462.1 MB (rm -f Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter_res.mat --tempDir=temp_Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMR_Inverter_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMR_Inverter.fmu > Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMR_Inverter/SMR_Inverter.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches