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.001712/0.001712, allocations: 103.6 kB / 21.18 MB, free: 332 kB / 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.002099/0.002099, allocations: 213 kB / 24.47 MB, free: 3.547 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.333/1.333, allocations: 207.7 MB / 235.3 MB, free: 9.793 MB / 190.1 MB " [Timeout remaining time 179] 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.001791/0.001791, allocations: 59.86 kB / 347.2 MB, free: 9.852 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2288/0.2306, allocations: 49.15 MB / 396.4 MB, free: 8.883 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter): time 0.01724/0.2478, allocations: 17.5 MB / 413.9 MB, free: 13.35 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01373/0.2615, allocations: 5.731 MB / 419.6 MB, free: 8.859 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004723/0.2663, allocations: 152 kB / 419.7 MB, free: 8.793 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004747/0.271, allocations: 1.344 MB / 421.1 MB, free: 7.762 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006879/0.2779, allocations: 1.935 MB / 423 MB, free: 6.152 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003409/0.2813, allocations: 1.241 MB / 424.3 MB, free: 5.117 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.008047/0.2893, allocations: 6.127 MB / 430.4 MB, free: 0.9844 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004196/0.2935, allocations: 2.869 MB / 433.3 MB, free: 14.03 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004361/0.2979, allocations: 2.905 MB / 436.2 MB, free: 11.11 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005098/0.303, allocations: 3.23 MB / 439.4 MB, free: 7.871 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00129/0.3043, allocations: 0.7812 MB / 440.2 MB, free: 7.09 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002362/0.3066, allocations: 1.046 MB / 441.2 MB, free: 6.043 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001901/0.3085, allocations: 1.959 MB / 443.2 MB, free: 4.078 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003659/0.3122, allocations: 2.672 MB / 445.9 MB, free: 1.395 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01157/0.3238, allocations: 10.37 MB / 456.2 MB, free: 6.984 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.52e-06/0.3238, allocations: 3.938 kB / 456.2 MB, free: 6.98 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.134e-06/0.3238, allocations: 0 / 456.2 MB, free: 6.98 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0002645/0.324, allocations: 0 / 456.2 MB, free: 6.98 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.0172/0.3412, allocations: 6.644 MB / 462.9 MB, free: 272 kB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.139e-05/0.3413, allocations: 11.98 kB / 462.9 MB, free: 260 kB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001072/0.3424, allocations: 0.7039 MB / 463.6 MB, free: 15.54 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004413/0.3468, allocations: 1.04 MB / 464.6 MB, free: 14.5 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007538/0.3543, allocations: 3.248 MB / 467.9 MB, free: 11.18 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003648/0.3547, allocations: 390.6 kB / 468.3 MB, free: 10.8 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00109/0.3558, allocations: 0.5037 MB / 468.8 MB, free: 10.29 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01503/0.3708, allocations: 7.001 MB / 475.8 MB, free: 3.168 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001915/0.371, allocations: 7.953 kB / 475.8 MB, free: 3.16 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001061/0.3721, allocations: 212 kB / 476 MB, free: 2.953 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002896/0.3723, allocations: 238.2 kB / 476.2 MB, free: 2.719 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01339/0.3857, allocations: 5.732 MB / 481.9 MB, free: 12.98 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03809/0.4238, allocations: 18.77 MB / 0.489 GB, free: 9.719 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006875/0.4307, allocations: 3.646 MB / 0.4925 GB, free: 6.254 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003388/0.4341, allocations: 1.936 MB / 0.4944 GB, free: 4.312 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01071/0.4448, allocations: 4.982 MB / 0.4993 GB, free: 15.3 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.411e-05/0.4448, allocations: 60.5 kB / 0.4994 GB, free: 15.23 MB / 430.1 MB Notification: Performance of pre-optimization done (n=205): time 4.027e-06/0.4449, allocations: 0 / 0.4994 GB, free: 15.23 MB / 430.1 MB Notification: Performance of matching and sorting (n=222): time 0.02011/0.465, allocations: 9.486 MB / 0.5086 GB, free: 5.727 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.32e-05/0.465, allocations: 73.41 kB / 0.5087 GB, free: 5.645 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004344/0.4694, allocations: 2.958 MB / 0.5116 GB, free: 2.676 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002486/0.4696, allocations: 65.7 kB / 0.5116 GB, free: 2.605 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001895/0.4715, allocations: 2.423 MB / 0.514 GB, free: 168 kB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008105/0.4723, allocations: 0.8018 MB / 0.5148 GB, free: 15.36 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000814/0.4731, allocations: 0.5179 MB / 0.5153 GB, free: 14.83 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001244/0.4733, allocations: 309.1 kB / 0.5156 GB, free: 14.52 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002193/0.4755, allocations: 1.271 MB / 0.5168 GB, free: 13.25 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002937/0.4784, allocations: 2.2 MB / 0.519 GB, free: 10.64 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005842/0.4842, allocations: 3.668 MB / 0.5226 GB, free: 6.574 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.195e-05/0.4843, allocations: 15.94 kB / 0.5226 GB, free: 6.559 MB / 446.1 MB Notification: Performance of matching and sorting (n=373) (initialization): time 0.008327/0.4926, allocations: 4.293 MB / 0.5268 GB, free: 2.234 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.798e-05/0.4926, allocations: 16.53 kB / 0.5268 GB, free: 2.219 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.329e-05/0.4927, allocations: 32 kB / 0.5268 GB, free: 2.188 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001261/0.4939, allocations: 0.521 MB / 0.5273 GB, free: 1.645 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00283/0.4968, allocations: 0.6903 MB / 0.528 GB, free: 0.9531 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01028/0.507, allocations: 9.619 MB / 0.5374 GB, free: 6.766 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002512/0.5096, allocations: 171.8 kB / 0.5376 GB, free: 6.598 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003537/0.5099, allocations: 131.9 kB / 0.5377 GB, free: 6.469 MB / 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.002841/0.5127, allocations: 1.52 MB / 0.5392 GB, free: 4.938 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008015/0.5135, allocations: 333.9 kB / 0.5395 GB, free: 4.609 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006784/0.5203, allocations: 3.622 MB / 0.543 GB, free: 0.9414 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.102e-05/0.5204, allocations: 20 kB / 0.543 GB, free: 0.9219 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.489e-05/0.5204, allocations: 11.94 kB / 0.5431 GB, free: 0.9102 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.161e-05/0.5204, allocations: 23.89 kB / 0.5431 GB, free: 0.8867 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01448/0.5349, allocations: 7.73 MB / 0.5506 GB, free: 9.027 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.031e-05/0.5349, allocations: 4 kB / 0.5506 GB, free: 9.023 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001641/0.5365, allocations: 383.4 kB / 0.551 GB, free: 8.648 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001957/0.5385, allocations: 0.7211 MB / 0.5517 GB, free: 7.902 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002055/0.5387, allocations: 63.97 kB / 0.5518 GB, free: 7.84 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1612/0.6999, allocations: 15.68 MB / 0.5671 GB, free: 135.3 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.408e-06/0.6999, allocations: 4.281 kB / 0.5671 GB, free: 135.3 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007567/0.7075, allocations: 5.331 MB / 0.5723 GB, free: 133.2 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001538/0.7091, allocations: 0.5944 MB / 0.5729 GB, free: 133 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003705/0.7094, allocations: 54.31 kB / 0.5729 GB, free: 133 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001462/0.7109, allocations: 136.5 kB / 0.573 GB, free: 132.9 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00039/0.7113, allocations: 179.3 kB / 0.5732 GB, free: 132.9 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001317/0.7114, allocations: 63.94 kB / 0.5733 GB, free: 132.9 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.002794/0.7142, allocations: 1.966 MB / 0.5752 GB, free: 132.2 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.7142, allocations: 2.734 kB / 0.5752 GB, free: 132.2 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.002804/0.717, allocations: 0.9326 MB / 0.5761 GB, free: 132.1 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.007396/0.7244, allocations: 6.027 MB / 0.582 GB, free: 129.4 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.004692/0.7291, allocations: 3.678 MB / 0.5856 GB, free: 127.7 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 5.36e-06/0.7291, allocations: 3.938 kB / 0.5856 GB, free: 127.7 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002914/0.732, allocations: 2.552 MB / 0.5881 GB, free: 126.2 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002849/0.7349, allocations: 0.8496 MB / 0.5889 GB, free: 125.9 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03515/0.77, allocations: 33.16 MB / 0.6213 GB, free: 96.19 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002216/0.7722, allocations: 2.782 MB / 0.624 GB, free: 93.37 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.001882/0.7741, allocations: 0.7616 MB / 0.6248 GB, free: 92.6 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001767/0.7759, allocations: 1.942 MB / 0.6267 GB, free: 90.66 MB / 478.1 MB Notification: Performance of SimCode: time 7.71e-07/0.7759, allocations: 0 / 0.6267 GB, free: 90.66 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.109/1.885, allocations: 86.47 MB / 0.7111 GB, free: 4.004 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 15.68/17.57, allocations: 11.89 kB / 0.7111 GB, free: 3.992 MB / 478.1 MB " [Timeout remaining time 642] (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: 25.52531245769933]