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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001401/0.001401, allocations: 109.6 kB / 21.18 MB, free: 0.6992 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001563/0.001563, allocations: 216.7 kB / 24.5 MB, free: 4.027 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.415/1.415, allocations: 207.6 MB / 235.3 MB, free: 10.01 MB / 190.1 MB " [Timeout remaining time 178] 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.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.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.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001817/0.001817, allocations: 51.92 kB / 347.2 MB, free: 10.02 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3046/0.3064, allocations: 49.15 MB / 396.4 MB, free: 8.977 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter): time 0.02237/0.3288, allocations: 20.36 MB / 416.7 MB, free: 10.43 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0152/0.344, allocations: 5.986 MB / 422.7 MB, free: 5.684 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006004/0.35, allocations: 153.4 kB / 422.9 MB, free: 5.617 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005802/0.3558, allocations: 1.406 MB / 424.3 MB, free: 4.527 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0081/0.3639, allocations: 1.957 MB / 426.2 MB, free: 2.895 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004466/0.3683, allocations: 1.298 MB / 427.5 MB, free: 1.801 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.01242/0.3808, allocations: 6.118 MB / 433.6 MB, free: 13.95 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008182/0.3889, allocations: 2.978 MB / 436.6 MB, free: 10.89 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007775/0.3967, allocations: 2.913 MB / 439.5 MB, free: 7.965 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007909/0.4046, allocations: 3.452 MB / 443 MB, free: 4.5 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003108/0.4077, allocations: 0.7812 MB / 443.8 MB, free: 3.719 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00479/0.4125, allocations: 1.082 MB / 444.9 MB, free: 2.637 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003511/0.416, allocations: 1.963 MB / 446.8 MB, free: 0.668 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.008842/0.4249, allocations: 3.349 MB / 450.2 MB, free: 13.3 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01834/0.4432, allocations: 10.34 MB / 460.5 MB, free: 2.938 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.078e-06/0.4432, allocations: 0 / 460.5 MB, free: 2.938 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.914e-06/0.4432, allocations: 0 / 460.5 MB, free: 2.938 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0003702/0.4436, allocations: 4 kB / 460.5 MB, free: 2.934 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: 1347 * Number of variables: 1347 Notification: Performance of Generate backend data structure: time 0.02306/0.4666, allocations: 6.652 MB / 467.2 MB, free: 12.21 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.72e-05/0.4667, allocations: 15.98 kB / 467.2 MB, free: 12.2 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00232/0.469, allocations: 0.7 MB / 467.9 MB, free: 11.48 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00645/0.4755, allocations: 1.036 MB / 468.9 MB, free: 10.45 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01078/0.4862, allocations: 3.276 MB / 472.2 MB, free: 7.102 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005517/0.4868, allocations: 382.7 kB / 472.6 MB, free: 6.727 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002301/0.4891, allocations: 0.5114 MB / 473.1 MB, free: 6.215 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02275/0.5118, allocations: 6.767 MB / 479.8 MB, free: 15.38 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003147/0.5122, allocations: 7.953 kB / 479.8 MB, free: 15.37 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001769/0.5139, allocations: 216 kB / 480.1 MB, free: 15.16 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003726/0.5143, allocations: 242.2 kB / 480.3 MB, free: 14.92 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01502/0.5293, allocations: 5.744 MB / 486 MB, free: 9.168 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04823/0.5775, allocations: 20.55 MB / 0.4947 GB, free: 4.129 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008389/0.5859, allocations: 3.672 MB / 0.4983 GB, free: 0.6406 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003715/0.5896, allocations: 1.917 MB / 0.5002 GB, free: 14.71 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01221/0.6019, allocations: 5.504 MB / 0.5055 GB, free: 9.184 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.223e-05/0.6019, allocations: 60.5 kB / 0.5056 GB, free: 9.113 MB / 430.1 MB Notification: Performance of pre-optimization done (n=205): time 3.747e-06/0.6019, allocations: 0 / 0.5056 GB, free: 9.113 MB / 430.1 MB Notification: Performance of matching and sorting (n=222): time 0.02284/0.6248, allocations: 9.489 MB / 0.5149 GB, free: 15.6 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.375e-05/0.6248, allocations: 73.41 kB / 0.5149 GB, free: 15.52 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006029/0.6309, allocations: 2.908 MB / 0.5178 GB, free: 12.6 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003972/0.6313, allocations: 61.7 kB / 0.5178 GB, free: 12.54 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002434/0.6337, allocations: 2.423 MB / 0.5202 GB, free: 10.09 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001171/0.6349, allocations: 0.8018 MB / 0.521 GB, free: 9.285 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001455/0.6363, allocations: 0.514 MB / 0.5215 GB, free: 8.762 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001395/0.6365, allocations: 309.1 kB / 0.5218 GB, free: 8.457 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002504/0.639, allocations: 1.267 MB / 0.523 GB, free: 7.188 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003287/0.6423, allocations: 2.179 MB / 0.5251 GB, free: 4.605 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005859/0.6481, allocations: 3.664 MB / 0.5287 GB, free: 0.543 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.96e-05/0.6481, allocations: 11.94 kB / 0.5287 GB, free: 0.5312 MB / 446.1 MB Notification: Performance of matching and sorting (n=373) (initialization): time 0.008569/0.6567, allocations: 4.301 MB / 0.5329 GB, free: 12.2 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.924e-05/0.6568, allocations: 20 kB / 0.533 GB, free: 12.18 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.062e-05/0.6568, allocations: 31.98 kB / 0.533 GB, free: 12.15 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001287/0.6581, allocations: 0.5172 MB / 0.5335 GB, free: 11.61 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002758/0.6609, allocations: 0.6864 MB / 0.5342 GB, free: 10.92 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01026/0.6711, allocations: 9.682 MB / 0.5436 GB, free: 0.6758 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002747/0.6739, allocations: 167.8 kB / 0.5438 GB, free: 0.5117 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004686/0.6743, allocations: 135.9 kB / 0.5439 GB, free: 388 kB / 462.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.003458/0.6778, allocations: 1.52 MB / 0.5454 GB, free: 14.85 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001022/0.6788, allocations: 329.9 kB / 0.5457 GB, free: 14.52 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008062/0.6869, allocations: 3.625 MB / 0.5492 GB, free: 10.85 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.534e-05/0.6869, allocations: 20 kB / 0.5493 GB, free: 10.83 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.349e-05/0.6869, allocations: 11.94 kB / 0.5493 GB, free: 10.82 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.263e-05/0.687, allocations: 11.95 kB / 0.5493 GB, free: 10.81 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01857/0.7055, allocations: 8.205 MB / 0.5573 GB, free: 2.473 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.199e-05/0.7056, allocations: 4 kB / 0.5573 GB, free: 2.469 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001806/0.7074, allocations: 391.8 kB / 0.5577 GB, free: 2.086 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002054/0.7094, allocations: 0.721 MB / 0.5584 GB, free: 1.34 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002466/0.7097, allocations: 59.97 kB / 0.5584 GB, free: 1.281 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2473/0.957, allocations: 15.79 MB / 0.5739 GB, free: 131.2 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.062e-06/0.957, allocations: 5.297 kB / 0.5739 GB, free: 131.2 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01265/0.9696, allocations: 5.329 MB / 0.5791 GB, free: 129.1 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002683/0.9723, allocations: 0.5935 MB / 0.5797 GB, free: 128.9 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001022/0.9733, allocations: 55.59 kB / 0.5797 GB, free: 128.9 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002634/0.9759, allocations: 132.5 kB / 0.5798 GB, free: 128.8 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006826/0.9766, allocations: 176.6 kB / 0.58 GB, free: 128.8 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002419/0.9769, allocations: 70.8 kB / 0.5801 GB, free: 128.8 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.004881/0.9818, allocations: 1.966 MB / 0.582 GB, free: 128 MB / 478.1 MB Notification: Performance of sort global known variables: time 2.11e-07/0.9818, allocations: 0 / 0.582 GB, free: 128 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.006833/0.9886, allocations: 0.9347 MB / 0.5829 GB, free: 128 MB / 478.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.0133/1.002, allocations: 6.004 MB / 0.5888 GB, free: 125.2 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.008065/1.01, allocations: 3.685 MB / 0.5924 GB, free: 123.6 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 1.209e-05/1.01, allocations: 3.562 kB / 0.5924 GB, free: 123.6 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005151/1.015, allocations: 2.562 MB / 0.5949 GB, free: 122.1 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005772/1.021, allocations: 0.8474 MB / 0.5957 GB, free: 121.8 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06318/1.084, allocations: 33.18 MB / 0.6281 GB, free: 90.61 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003513/1.088, allocations: 3.302 MB / 0.6313 GB, free: 87.28 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.002607/1.09, allocations: 0.7577 MB / 0.6321 GB, free: 86.52 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002426/1.093, allocations: 1.94 MB / 0.634 GB, free: 84.57 MB / 478.1 MB Notification: Performance of SimCode: time 1.002e-06/1.093, allocations: 4 kB / 0.634 GB, free: 84.57 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1866/1.279, allocations: 84.82 MB / 0.7168 GB, free: 15.61 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 18.86/20.14, allocations: 3.938 kB / 0.7168 GB, free: 15.61 MB / 494.1 MB " [Timeout remaining time 640] (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 --stepSize=0.0001 --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) [Timeout 52.5] 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) [Timeout 660] "" [Timeout remaining time 658] Reference file matches [Calling sys.exit(0), Time elapsed: 27.479502554051578]