Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_DOL.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001281/0.001281, allocations: 108.6 kB / 21.22 MB, free: 0.7305 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001442/0.001442, allocations: 191.5 kB / 24.51 MB, free: 4.086 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.354/1.354, allocations: 225.6 MB / 253.3 MB, free: 13.02 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_DOL,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMEE_DOL",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_DOL,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMEE_DOL",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001494/0.001494, allocations: 47.91 kB / 371.2 MB, free: 9.836 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2368/0.2383, allocations: 52.19 MB / 423.4 MB, free: 14.73 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_DOL): time 0.01916/0.2574, allocations: 16.8 MB / 440.2 MB, free: 13.86 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01102/0.2685, allocations: 5.444 MB / 445.7 MB, free: 8.391 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002757/0.2712, allocations: 131.2 kB / 445.8 MB, free: 8.262 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003653/0.2749, allocations: 1.286 MB / 447.1 MB, free: 6.973 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005635/0.2805, allocations: 1.678 MB / 448.8 MB, free: 5.285 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003035/0.2835, allocations: 1.063 MB / 449.8 MB, free: 4.227 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.007671/0.2912, allocations: 5.123 MB / 455 MB, free: 15.09 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004118/0.2953, allocations: 2.309 MB / 457.3 MB, free: 12.69 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003585/0.2989, allocations: 2.243 MB / 459.5 MB, free: 10.44 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004401/0.3033, allocations: 2.635 MB / 462.1 MB, free: 7.797 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001102/0.3044, allocations: 0.6133 MB / 462.8 MB, free: 7.184 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00203/0.3064, allocations: 0.8434 MB / 463.6 MB, free: 6.34 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00135/0.3078, allocations: 1.433 MB / 465 MB, free: 4.902 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003426/0.3112, allocations: 2.637 MB / 467.7 MB, free: 2.254 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00982/0.321, allocations: 8.124 MB / 475.8 MB, free: 10.1 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.002e-06/0.321, allocations: 0 / 475.8 MB, free: 10.1 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.813e-06/0.321, allocations: 4 kB / 475.8 MB, free: 10.1 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.000209/0.3213, allocations: 0 / 475.8 MB, free: 10.1 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1051 * Number of variables: 1051 Notification: Performance of Generate backend data structure: time 0.01511/0.3364, allocations: 5.406 MB / 481.2 MB, free: 4.625 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.112e-05/0.3364, allocations: 12.03 kB / 481.2 MB, free: 4.613 MB / 382.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 0.0001401/0.3366, allocations: 123.8 kB / 481.3 MB, free: 4.488 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001068/0.3376, allocations: 0.6067 MB / 481.9 MB, free: 3.867 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005234/0.3429, allocations: 1.005 MB / 482.9 MB, free: 2.859 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006629/0.3495, allocations: 2.917 MB / 485.9 MB, free: 15.89 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002881/0.3498, allocations: 300.1 kB / 486.2 MB, free: 15.6 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009439/0.3507, allocations: 400 kB / 486.6 MB, free: 15.21 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009853/0.3606, allocations: 5.217 MB / 491.8 MB, free: 9.902 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.016e-05/0.3607, allocations: 7.953 kB / 491.8 MB, free: 9.895 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003876/0.3611, allocations: 164 kB / 491.9 MB, free: 9.734 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001725/0.3612, allocations: 176 kB / 492.1 MB, free: 9.559 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008854/0.3701, allocations: 4.466 MB / 496.6 MB, free: 5.074 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02917/0.3992, allocations: 16.33 MB / 0.5009 GB, free: 4.273 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006205/0.4055, allocations: 3.209 MB / 0.504 GB, free: 1.266 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003091/0.4085, allocations: 1.557 MB / 0.5055 GB, free: 15.71 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009334/0.4179, allocations: 4.341 MB / 0.5098 GB, free: 11.34 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.109e-05/0.4179, allocations: 51.81 kB / 0.5098 GB, free: 11.28 MB / 430.1 MB Notification: Performance of pre-optimization done (n=159): time 3.867e-06/0.4179, allocations: 0 / 0.5098 GB, free: 11.28 MB / 430.1 MB Notification: Performance of matching and sorting (n=187): time 0.01736/0.4353, allocations: 7.27 MB / 0.5169 GB, free: 3.969 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.127e-05/0.4354, allocations: 73.41 kB / 0.517 GB, free: 3.883 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00462/0.44, allocations: 2.286 MB / 0.5192 GB, free: 1.57 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002375/0.4402, allocations: 53.7 kB / 0.5193 GB, free: 1.512 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001752/0.442, allocations: 1.901 MB / 0.5211 GB, free: 15.59 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007975/0.4428, allocations: 0.6662 MB / 0.5218 GB, free: 14.92 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009525/0.4437, allocations: 432.5 kB / 0.5222 GB, free: 14.49 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001329/0.4439, allocations: 305.1 kB / 0.5225 GB, free: 14.19 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001924/0.4458, allocations: 0.9455 MB / 0.5234 GB, free: 13.24 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002508/0.4483, allocations: 1.698 MB / 0.5251 GB, free: 11.21 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004578/0.4529, allocations: 2.811 MB / 0.5278 GB, free: 8.086 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.757e-05/0.4529, allocations: 8 kB / 0.5278 GB, free: 8.078 MB / 446.1 MB Notification: Performance of matching and sorting (n=302) (initialization): time 0.006644/0.4595, allocations: 3.24 MB / 0.531 GB, free: 4.82 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.018e-05/0.4596, allocations: 16 kB / 0.531 GB, free: 4.805 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.915e-05/0.4596, allocations: 24 kB / 0.531 GB, free: 4.781 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009515/0.4606, allocations: 322.8 kB / 0.5313 GB, free: 4.457 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002148/0.4627, allocations: 0.5616 MB / 0.5319 GB, free: 3.895 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1965/0.6592, allocations: 4.818 MB / 0.5366 GB, free: 102 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002249/0.6615, allocations: 123.4 kB / 0.5367 GB, free: 102 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002644/0.6618, allocations: 103.2 kB / 0.5368 GB, free: 102 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 103 * Number of states: 0 () * Number of discrete variables: 1 (booleanReplicator.y[3]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (280): * Single equations (assignments): 277 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 2 * 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): 2 systems {(2,15,100.0%), (1,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002225/0.664, allocations: 1.219 MB / 0.538 GB, free: 101.9 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005218/0.6645, allocations: 263.6 kB / 0.5382 GB, free: 101.9 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004692/0.6692, allocations: 2.633 MB / 0.5408 GB, free: 100.9 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.496e-05/0.6692, allocations: 16.38 kB / 0.5408 GB, free: 100.9 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.094e-05/0.6692, allocations: 11.72 kB / 0.5408 GB, free: 100.9 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.374e-05/0.6692, allocations: 9.734 kB / 0.5409 GB, free: 100.9 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009135/0.6784, allocations: 6.237 MB / 0.5469 GB, free: 98.22 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.818e-06/0.6784, allocations: 11.75 kB / 0.547 GB, free: 98.22 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001416/0.6798, allocations: 343.6 kB / 0.5473 GB, free: 98.2 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008455/0.6807, allocations: 359 kB / 0.5476 GB, free: 98.08 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00011/0.6808, allocations: 43.52 kB / 0.5477 GB, free: 98.06 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00526/0.686, allocations: 6.892 MB / 0.5544 GB, free: 92.47 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.777e-06/0.686, allocations: 6.156 kB / 0.5544 GB, free: 92.47 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005428/0.6915, allocations: 3.925 MB / 0.5582 GB, free: 90.84 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001127/0.6926, allocations: 483.8 kB / 0.5587 GB, free: 90.69 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000334/0.6929, allocations: 45.86 kB / 0.5587 GB, free: 90.66 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001122/0.694, allocations: 92.97 kB / 0.5588 GB, free: 90.63 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002638/0.6943, allocations: 135.7 kB / 0.559 GB, free: 90.61 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.673e-05/0.6944, allocations: 51.72 kB / 0.559 GB, free: 90.6 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.001902/0.6963, allocations: 1.551 MB / 0.5605 GB, free: 89.93 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.6963, allocations: 7.562 kB / 0.5605 GB, free: 89.93 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.002146/0.6984, allocations: 0.7079 MB / 0.5612 GB, free: 89.51 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 7 (smee.inertiaRotor.w,smee.stator.core.Phi.re,smee.stator.core.Phi.im,smee.stator.stray.Phi.re,smee.stator.stray.Phi.im,smee.excitation.electroMagneticConverter.Phi.re,mechanicalSensor.flange_a.phi) * Number of discrete variables: 1 (booleanReplicator.y[3]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (159): * Single equations (assignments): 156 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(2,15,100.0%), (1,5,100.0%), (1,8,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.005311/0.7038, allocations: 4.561 MB / 0.5657 GB, free: 85.02 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.003892/0.7077, allocations: 2.632 MB / 0.5682 GB, free: 82.38 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 4.398e-06/0.7077, allocations: 0 / 0.5682 GB, free: 82.38 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002035/0.7097, allocations: 1.541 MB / 0.5698 GB, free: 80.8 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002754/0.7124, allocations: 0.6081 MB / 0.5703 GB, free: 80.21 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03246/0.7449, allocations: 25.46 MB / 0.5952 GB, free: 53.8 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00175/0.7467, allocations: 2.702 MB / 0.5979 GB, free: 51.06 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0017/0.7484, allocations: 0.5859 MB / 0.5984 GB, free: 50.47 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001551/0.7499, allocations: 1.495 MB / 0.5999 GB, free: 48.98 MB / 446.1 MB Notification: Performance of SimCode: time 1.122e-06/0.7499, allocations: 0 / 0.5999 GB, free: 48.98 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1037/0.8537, allocations: 64.91 MB / 0.6633 GB, free: 0.6445 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 17.52/18.37, allocations: 11.86 kB / 0.6633 GB, free: 0.6328 MB / 462.1 MB " [Timeout remaining time 641] (rm -f Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_DOL.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_DOL.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_DOL.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_DOL.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_DOL_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMEE_DOL_fmu --startTime=0 --stopTime=3 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMEE_DOL.fmu > Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_DOL.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_DOL_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMEE_DOL/SMEE_DOL.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_DOL.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 652] Reference file matches [Calling sys.exit(0), Time elapsed: 35.07452853600262]