Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.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.002003/0.002003, allocations: 107.1 kB / 20.44 MB, free: 1.344 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.001549/0.001549, allocations: 211.6 kB / 23.73 MB, free: 4.523 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.332/1.332, allocations: 230.6 MB / 257.5 MB, free: 7.797 MB / 206.1 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+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.SynchronousMachines.SMR_Inverter,fileNamePrefix="Modelica_4_1_0_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_4_1_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMR_Inverter",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001669/0.001669, allocations: 47.86 kB / 377.7 MB, free: 3.047 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1973/0.199, allocations: 53.36 MB / 431.1 MB, free: 6.664 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter): time 0.0201/0.2191, allocations: 18.12 MB / 449.2 MB, free: 4.461 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.009087/0.2282, allocations: 5.923 MB / 455.1 MB, free: 14.52 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00117/0.2294, allocations: 170.9 kB / 455.3 MB, free: 14.36 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002443/0.2318, allocations: 1.374 MB / 456.7 MB, free: 12.97 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003513/0.2353, allocations: 1.969 MB / 458.7 MB, free: 10.99 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002197/0.2375, allocations: 1.254 MB / 459.9 MB, free: 9.738 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.00589/0.2434, allocations: 6.17 MB / 466.1 MB, free: 3.543 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003646/0.247, allocations: 3.038 MB / 469.1 MB, free: 428 kB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003129/0.2502, allocations: 2.928 MB / 472 MB, free: 13.48 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004154/0.2543, allocations: 3.565 MB / 475.6 MB, free: 9.902 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008735/0.2552, allocations: 0.7852 MB / 476.4 MB, free: 9.117 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001555/0.2568, allocations: 1.078 MB / 477.5 MB, free: 8.039 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001719/0.2585, allocations: 1.959 MB / 479.4 MB, free: 6.074 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00266/0.2611, allocations: 2.684 MB / 482.1 MB, free: 3.379 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009262/0.2704, allocations: 10.43 MB / 492.6 MB, free: 8.906 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.015e-06/0.2704, allocations: 0 / 492.6 MB, free: 8.906 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.031e-06/0.2704, allocations: 0 / 492.6 MB, free: 8.906 MB / 398.1 MB Notification: Performance of Transformations before backend: time 9.48e-05/0.2705, allocations: 0 / 492.6 MB, free: 8.906 MB / 398.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.01252/0.283, allocations: 6.687 MB / 499.2 MB, free: 2.152 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.768e-05/0.2831, allocations: 12.03 kB / 499.3 MB, free: 2.141 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0008636/0.2839, allocations: 0.7 MB / 500 MB, free: 1.43 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004141/0.2881, allocations: 1.028 MB / 0.4892 GB, free: 408 kB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006147/0.2942, allocations: 3.498 MB / 0.4927 GB, free: 12.84 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002901/0.2945, allocations: 386.6 kB / 0.493 GB, free: 12.46 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007555/0.2952, allocations: 0.5116 MB / 0.4935 GB, free: 11.95 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01031/0.3056, allocations: 7.008 MB / 0.5004 GB, free: 4.812 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001048/0.3057, allocations: 11.89 kB / 0.5004 GB, free: 4.801 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004514/0.3061, allocations: 216 kB / 0.5006 GB, free: 4.59 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002299/0.3063, allocations: 246.2 kB / 0.5008 GB, free: 4.348 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008965/0.3153, allocations: 5.744 MB / 0.5064 GB, free: 14.59 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02786/0.3432, allocations: 18.8 MB / 0.5248 GB, free: 11.3 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006083/0.3492, allocations: 3.692 MB / 0.5284 GB, free: 7.82 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003171/0.3524, allocations: 2.034 MB / 0.5304 GB, free: 5.773 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009232/0.3617, allocations: 5.048 MB / 0.5353 GB, free: 0.6836 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.474e-05/0.3617, allocations: 60.5 kB / 0.5354 GB, free: 0.6133 MB / 446.1 MB Notification: Performance of pre-optimization done (n=205): time 3.487e-06/0.3617, allocations: 0 / 0.5354 GB, free: 0.6133 MB / 446.1 MB Notification: Performance of matching and sorting (n=222): time 0.1826/0.5443, allocations: 9.572 MB / 0.5447 GB, free: 96.32 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.894e-05/0.5443, allocations: 77 kB / 0.5448 GB, free: 96.25 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003219/0.5476, allocations: 2.976 MB / 0.5477 GB, free: 95.15 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001373/0.5477, allocations: 60.95 kB / 0.5478 GB, free: 95.09 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009549/0.5486, allocations: 2.434 MB / 0.5501 GB, free: 93.55 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004063/0.5491, allocations: 0.8024 MB / 0.5509 GB, free: 93.02 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006005/0.5497, allocations: 0.5307 MB / 0.5514 GB, free: 92.75 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 3.498e-05/0.5497, allocations: 305.1 kB / 0.5517 GB, free: 92.45 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001547/0.5512, allocations: 1.267 MB / 0.553 GB, free: 92 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001765/0.553, allocations: 2.2 MB / 0.5551 GB, free: 89.62 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003418/0.5564, allocations: 3.671 MB / 0.5587 GB, free: 85.84 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.255e-05/0.5564, allocations: 8 kB / 0.5587 GB, free: 85.84 MB / 446.1 MB Notification: Performance of matching and sorting (n=373) (initialization): time 0.006153/0.5626, allocations: 4.314 MB / 0.5629 GB, free: 81.91 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.015e-05/0.5626, allocations: 20 kB / 0.5629 GB, free: 81.89 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.921e-05/0.5626, allocations: 28 kB / 0.563 GB, free: 81.86 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001017/0.5637, allocations: 0.5355 MB / 0.5635 GB, free: 81.31 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002138/0.5658, allocations: 0.6825 MB / 0.5641 GB, free: 80.62 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005892/0.5717, allocations: 9.773 MB / 0.5737 GB, free: 70.32 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00246/0.5742, allocations: 183.7 kB / 0.5739 GB, free: 70.14 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001957/0.5743, allocations: 132 kB / 0.574 GB, free: 70.01 MB / 446.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.002121/0.5765, allocations: 1.516 MB / 0.5755 GB, free: 68.48 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000472/0.5769, allocations: 337.8 kB / 0.5758 GB, free: 68.15 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004837/0.5818, allocations: 3.647 MB / 0.5794 GB, free: 64.46 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.124e-05/0.5818, allocations: 20 kB / 0.5794 GB, free: 64.45 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.889e-06/0.5818, allocations: 11.98 kB / 0.5794 GB, free: 64.43 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.541e-05/0.5818, allocations: 12.73 kB / 0.5794 GB, free: 64.42 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01042/0.5922, allocations: 7.794 MB / 0.587 GB, free: 56.56 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.295e-06/0.5922, allocations: 4 kB / 0.587 GB, free: 56.55 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001437/0.5937, allocations: 376 kB / 0.5874 GB, free: 56.19 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001536/0.5952, allocations: 0.7404 MB / 0.5881 GB, free: 55.42 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001305/0.5953, allocations: 63.97 kB / 0.5882 GB, free: 55.36 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009892/0.6052, allocations: 15.83 MB / 0.6036 GB, free: 38.64 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.027e-06/0.6052, allocations: 7.938 kB / 0.6036 GB, free: 38.63 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006668/0.6119, allocations: 5.345 MB / 0.6088 GB, free: 33.2 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001498/0.6134, allocations: 0.6029 MB / 0.6094 GB, free: 32.6 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004021/0.6138, allocations: 55.98 kB / 0.6095 GB, free: 32.54 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001405/0.6152, allocations: 131.9 kB / 0.6096 GB, free: 32.41 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003202/0.6155, allocations: 181.4 kB / 0.6098 GB, free: 32.24 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001196/0.6157, allocations: 67.97 kB / 0.6098 GB, free: 32.17 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0021/0.6178, allocations: 1.976 MB / 0.6118 GB, free: 30.2 MB / 446.1 MB Notification: Performance of sort global known variables: time 8e-08/0.6178, allocations: 0 / 0.6118 GB, free: 30.2 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.002508/0.6203, allocations: 0.9374 MB / 0.6127 GB, free: 29.26 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.006437/0.6267, allocations: 6.062 MB / 0.6186 GB, free: 23.11 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.004346/0.631, allocations: 3.693 MB / 0.6222 GB, free: 19.36 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 5.169e-06/0.6311, allocations: 4 kB / 0.6222 GB, free: 19.36 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002866/0.6339, allocations: 2.571 MB / 0.6247 GB, free: 16.68 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002943/0.6369, allocations: 0.8574 MB / 0.6256 GB, free: 15.84 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04398/0.6808, allocations: 33.19 MB / 0.658 GB, free: 13.45 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003214/0.6841, allocations: 2.798 MB / 0.6607 GB, free: 10.6 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.002189/0.6862, allocations: 0.7541 MB / 0.6614 GB, free: 9.844 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00239/0.6886, allocations: 1.948 MB / 0.6633 GB, free: 7.898 MB / 478.1 MB Notification: Performance of SimCode: time 6.91e-07/0.6886, allocations: 0 / 0.6633 GB, free: 7.898 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.7858/1.474, allocations: 88.09 MB / 0.7494 GB, free: 179.5 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.94/16.41, allocations: 4.969 kB / 0.7494 GB, free: 179.5 MB / 0.5294 GB " [Timeout remaining time 643] (rm -f Modelica_4.1.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter.pipe ; mkfifo Modelica_4.1.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter.pipe >> ../files/Modelica_4.1.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMR_Inverter_fmu --startTime=0 --stopTime=1.5 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMR_Inverter.fmu > Modelica_4.1.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMR_Inverter/SMR_Inverter.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.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: 24.769197026995244]