Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001308/0.001308, allocations: 117.3 kB / 18.5 MB, free: 4.434 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001439/0.001439, allocations: 218.6 kB / 21.47 MB, free: 1.473 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.455/1.455, allocations: 230.2 MB / 254.5 MB, free: 15.23 MB / 206.1 MB " [Timeout remaining time 178] 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.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_Mains",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_Mains",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001816/0.001816, allocations: 63.89 kB / 373.4 MB, free: 10.35 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1034/0.1053, allocations: 53.32 MB / 426.7 MB, free: 4.93 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains): time 0.237/0.3423, allocations: 38.04 MB / 464.7 MB, free: 2.777 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.02199/0.3643, allocations: 10.32 MB / 475.1 MB, free: 11.33 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007828/0.3721, allocations: 275.1 kB / 475.3 MB, free: 11.27 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02242/0.3945, allocations: 9.255 MB / 484.6 MB, free: 4.34 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0151/0.4096, allocations: 4.013 MB / 488.6 MB, free: 1.086 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00825/0.4179, allocations: 2.449 MB / 491 MB, free: 15.11 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.02212/0.44, allocations: 14.23 MB / 0.4934 GB, free: 2.57 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03908/0.4791, allocations: 19.31 MB / 0.5123 GB, free: 15.1 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01216/0.4913, allocations: 7.227 MB / 0.5194 GB, free: 7.852 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01338/0.5046, allocations: 8.137 MB / 0.5273 GB, free: 15.69 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.004903/0.5095, allocations: 2.027 MB / 0.5293 GB, free: 13.66 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00666/0.5162, allocations: 2.445 MB / 0.5317 GB, free: 11.21 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004722/0.5209, allocations: 4.037 MB / 0.5356 GB, free: 7.168 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01327/0.5342, allocations: 7.832 MB / 0.5433 GB, free: 15.3 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.03767/0.5719, allocations: 27.06 MB / 0.5697 GB, free: 4.164 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.216e-06/0.5719, allocations: 0 / 0.5697 GB, free: 4.164 MB / 478.1 MB Notification: Performance of FrontEnd: time 2.414e-06/0.5719, allocations: 4 kB / 0.5697 GB, free: 4.16 MB / 478.1 MB Notification: Performance of Transformations before backend: time 0.0007475/0.5726, allocations: 0 / 0.5697 GB, free: 4.16 MB / 478.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3330 * Number of variables: 3330 Notification: Performance of Generate backend data structure: time 0.04623/0.6189, allocations: 16.18 MB / 0.5855 GB, free: 3.836 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.774e-05/0.6189, allocations: 12.03 kB / 0.5855 GB, free: 3.824 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005621/0.6245, allocations: 1.923 MB / 0.5874 GB, free: 1.887 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03578/0.6603, allocations: 6.433 MB / 0.5937 GB, free: 11.44 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01943/0.6797, allocations: 8.631 MB / 0.6021 GB, free: 2.734 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008549/0.6806, allocations: 0.907 MB / 0.603 GB, free: 1.824 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003834/0.6844, allocations: 1.195 MB / 0.6041 GB, free: 0.6289 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.3916/1.076, allocations: 18.81 MB / 0.6225 GB, free: 139.3 MB / 0.5138 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003944/1.076, allocations: 21.94 kB / 0.6225 GB, free: 139.3 MB / 0.5138 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002235/1.079, allocations: 0.4913 MB / 0.623 GB, free: 139.3 MB / 0.5138 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006468/1.079, allocations: 0.6544 MB / 0.6236 GB, free: 139.3 MB / 0.5138 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03206/1.111, allocations: 17.04 MB / 0.6403 GB, free: 133.5 MB / 0.5138 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0877/1.199, allocations: 63.35 MB / 0.7022 GB, free: 88.68 MB / 0.5138 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01996/1.219, allocations: 29.57 MB / 0.731 GB, free: 55.62 MB / 0.5138 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005322/1.224, allocations: 3.676 MB / 0.7346 GB, free: 51.94 MB / 0.5138 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01583/1.24, allocations: 10.43 MB / 0.7448 GB, free: 41.63 MB / 0.5138 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.312e-05/1.24, allocations: 77.73 kB / 0.7449 GB, free: 41.54 MB / 0.5138 GB Notification: Performance of pre-optimization done (n=402): time 6.241e-06/1.24, allocations: 0 / 0.7449 GB, free: 41.54 MB / 0.5138 GB Notification: Performance of matching and sorting (n=412): time 0.03601/1.276, allocations: 20.41 MB / 0.7648 GB, free: 21.3 MB / 0.5138 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.446e-05/1.276, allocations: 120.4 kB / 0.7649 GB, free: 21.17 MB / 0.5138 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006263/1.283, allocations: 5.194 MB / 0.77 GB, free: 16.04 MB / 0.5138 GB Notification: Performance of collectPreVariables (initialization): time 0.0007025/1.283, allocations: 93.7 kB / 0.7701 GB, free: 15.95 MB / 0.5138 GB Notification: Performance of collectInitialEqns (initialization): time 0.002222/1.285, allocations: 5.555 MB / 0.7755 GB, free: 10.5 MB / 0.5138 GB Notification: Performance of collectInitialBindings (initialization): time 0.001254/1.287, allocations: 1.49 MB / 0.777 GB, free: 9.031 MB / 0.5138 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001526/1.288, allocations: 1.263 MB / 0.7782 GB, free: 7.758 MB / 0.5138 GB Notification: Performance of setup shared object (initialization): time 4.061e-05/1.288, allocations: 301.1 kB / 0.7785 GB, free: 7.461 MB / 0.5138 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003333/1.292, allocations: 2.855 MB / 0.7813 GB, free: 4.602 MB / 0.5138 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004876/1.296, allocations: 5.357 MB / 0.7865 GB, free: 14.09 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01287/1.309, allocations: 8.755 MB / 0.7951 GB, free: 4.148 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.692e-05/1.309, allocations: 24 kB / 0.7951 GB, free: 4.125 MB / 0.5294 GB Notification: Performance of matching and sorting (n=828) (initialization): time 0.01878/1.328, allocations: 9.698 MB / 0.8045 GB, free: 10.35 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 7.28e-05/1.328, allocations: 40.62 kB / 0.8046 GB, free: 10.31 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001217/1.328, allocations: 84.59 kB / 0.8047 GB, free: 10.23 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003021/1.331, allocations: 1.122 MB / 0.8058 GB, free: 9.09 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005471/1.337, allocations: 1.451 MB / 0.8072 GB, free: 7.637 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01748/1.354, allocations: 13.48 MB / 0.8203 GB, free: 9.602 MB / 0.5607 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005186/1.36, allocations: 355.9 kB / 0.8207 GB, free: 9.254 MB / 0.5607 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001112/1.361, allocations: 324 kB / 0.821 GB, free: 8.938 MB / 0.5607 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 373 * 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 (764): * Single equations (assignments): 758 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(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): 4 systems {(1,1,100.0%), (10,46,50.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.008278/1.369, allocations: 4.239 MB / 0.8251 GB, free: 4.684 MB / 0.5607 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001501/1.37, allocations: 0.5589 MB / 0.8257 GB, free: 4.121 MB / 0.5607 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01318/1.384, allocations: 7.061 MB / 0.8326 GB, free: 12.95 MB / 0.5763 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.007213/1.391, allocations: 4.218 MB / 0.8367 GB, free: 8.68 MB / 0.5763 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.456e-05/1.391, allocations: 16 kB / 0.8367 GB, free: 8.664 MB / 0.5763 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.755e-05/1.391, allocations: 23.92 kB / 0.8367 GB, free: 8.641 MB / 0.5763 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2395/1.63, allocations: 16.96 MB / 0.8533 GB, free: 188.8 MB / 0.5763 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.625e-05/1.63, allocations: 4.406 kB / 0.8533 GB, free: 188.8 MB / 0.5763 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002845/1.633, allocations: 0.6894 MB / 0.854 GB, free: 188.8 MB / 0.5763 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003163/1.636, allocations: 1.182 MB / 0.8551 GB, free: 188.7 MB / 0.5763 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003141/1.637, allocations: 103.6 kB / 0.8552 GB, free: 188.7 MB / 0.5763 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01634/1.653, allocations: 17.41 MB / 0.8722 GB, free: 175.8 MB / 0.5763 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.869e-06/1.653, allocations: 5.422 kB / 0.8722 GB, free: 175.8 MB / 0.5763 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01586/1.669, allocations: 10.3 MB / 0.8823 GB, free: 171.3 MB / 0.5763 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003167/1.672, allocations: 1.145 MB / 0.8834 GB, free: 170.9 MB / 0.5763 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007915/1.673, allocations: 80.78 kB / 0.8835 GB, free: 170.8 MB / 0.5763 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002345/1.675, allocations: 212.8 kB / 0.8837 GB, free: 170.8 MB / 0.5763 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007521/1.676, allocations: 310.2 kB / 0.884 GB, free: 170.7 MB / 0.5763 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002749/1.676, allocations: 124.4 kB / 0.8841 GB, free: 170.7 MB / 0.5763 GB Notification: Performance of sorting global known variables: time 0.004794/1.681, allocations: 3.488 MB / 0.8875 GB, free: 169.4 MB / 0.5763 GB Notification: Performance of sort global known variables: time 9e-08/1.681, allocations: 0 / 0.8875 GB, free: 169.4 MB / 0.5763 GB Notification: Performance of remove unused functions: time 0.007465/1.689, allocations: 1.958 MB / 0.8894 GB, free: 169.3 MB / 0.5763 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 21 * Number of states: 10 (smpm.inertiaRotor.w,smpm.stator.zeroInductor.i0,smpm.stator.core.Phi.re,smpm.stator.core.Phi.im,smpm.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.re,smpm.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.im,loadInertiaM.phi,smpmQS.inertiaRotor.w,smpmQS.rotorCage.port_p.reference.gamma,loadInertiaMQS.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 (353): * Single equations (assignments): 346 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 6 systems {(1,1,100.0%), (1,5,100.0%), (1,8,100.0%), (2,13,100.0%), (1,1,100.0%), (10,46,52.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.01395/1.703, allocations: 11.03 MB / 0.9002 GB, free: 164.2 MB / 0.5763 GB Notification: Performance of simCode: created initialization part: time 0.009661/1.712, allocations: 7.417 MB / 0.9074 GB, free: 161.1 MB / 0.5763 GB Notification: Performance of simCode: created event and clocks part: time 7.904e-06/1.712, allocations: 5.594 kB / 0.9074 GB, free: 161.1 MB / 0.5763 GB Notification: Performance of simCode: created simulation system equations: time 0.005223/1.717, allocations: 3.864 MB / 0.9112 GB, free: 157.8 MB / 0.5763 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005917/1.723, allocations: 1.444 MB / 0.9126 GB, free: 156.6 MB / 0.5763 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.08464/1.808, allocations: 66.78 MB / 0.9778 GB, free: 90.62 MB / 0.5763 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006253/1.814, allocations: 7.378 MB / 0.985 GB, free: 83.21 MB / 0.5763 GB Notification: Performance of simCode: alias equations: time 0.004871/1.819, allocations: 2.005 MB / 0.987 GB, free: 81.2 MB / 0.5763 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004362/1.823, allocations: 4.431 MB / 0.9913 GB, free: 76.77 MB / 0.5763 GB Notification: Performance of SimCode: time 8.62e-07/1.823, allocations: 4 kB / 0.9913 GB, free: 76.76 MB / 0.5763 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5218/2.345, allocations: 159.3 MB / 1.147 GB, free: 130.8 MB / 0.5763 GB Notification: Performance of buildModelFMU: Generate platform static: time 23.68/26.03, allocations: 9.781 kB / 1.147 GB, free: 130.8 MB / 0.5763 GB " [Timeout remaining time 634] (rm -f Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains_res.mat --tempDir=temp_Modelica_trunk_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_Mains_fmu --startTime=0 --stopTime=1 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_Mains.fmu > Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Magnetic/QuasiStatic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMPM_Mains/SMPM_Mains.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 656] Reference file matches [Calling sys.exit(0), Time elapsed: 37.61145889526233]