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.001778/0.001778, allocations: 123.2 kB / 17.79 MB, free: 5.246 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.00199/0.00199, allocations: 186.9 kB / 20.73 MB, free: 2.316 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.386/1.386, allocations: 225.6 MB / 249.1 MB, free: 3.602 MB / 190.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="me",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="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001491/0.001491, allocations: 47.92 kB / 365.7 MB, free: 0.8242 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09662/0.09812, allocations: 52.14 MB / 417.8 MB, free: 12.59 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_DOL): time 0.01904/0.1172, allocations: 16.72 MB / 434.5 MB, free: 11.79 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01041/0.1276, allocations: 5.433 MB / 440 MB, free: 6.34 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002836/0.1304, allocations: 103.7 kB / 440.1 MB, free: 6.238 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00368/0.1341, allocations: 1.285 MB / 441.3 MB, free: 4.945 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005308/0.1394, allocations: 1.665 MB / 443 MB, free: 3.273 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00275/0.1421, allocations: 1.047 MB / 444.1 MB, free: 2.227 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.1975/0.3396, allocations: 5.113 MB / 449.2 MB, free: 9.195 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003536/0.3431, allocations: 2.937 MB / 452.1 MB, free: 8.797 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003197/0.3463, allocations: 2.19 MB / 454.3 MB, free: 8.547 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00459/0.3509, allocations: 2.638 MB / 456.9 MB, free: 8.086 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00192/0.3529, allocations: 0.6134 MB / 457.5 MB, free: 8.086 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002855/0.3557, allocations: 0.8373 MB / 458.4 MB, free: 8.086 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001535/0.3572, allocations: 1.427 MB / 459.8 MB, free: 7.914 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003621/0.3609, allocations: 2.638 MB / 462.4 MB, free: 6.934 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009315/0.3702, allocations: 8.12 MB / 470.6 MB, free: 4.172 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.68e-06/0.3702, allocations: 4 kB / 470.6 MB, free: 4.168 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.423e-06/0.3702, allocations: 0 / 470.6 MB, free: 4.168 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0002015/0.3704, allocations: 1.031 kB / 470.6 MB, free: 4.168 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: 1051 * Number of variables: 1051 Notification: Performance of Generate backend data structure: time 0.01431/0.3847, allocations: 5.491 MB / 476.1 MB, free: 0.5977 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.697e-05/0.3847, allocations: 17.2 kB / 476.1 MB, free: 0.5898 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001104/0.3859, allocations: 0.6068 MB / 476.7 MB, free: 168 kB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005338/0.3912, allocations: 1.006 MB / 477.7 MB, free: 15.68 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00734/0.3985, allocations: 2.983 MB / 480.7 MB, free: 13.68 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002464/0.3988, allocations: 313.8 kB / 481 MB, free: 13.54 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007709/0.3995, allocations: 393 kB / 481.4 MB, free: 13.41 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009856/0.4094, allocations: 5.219 MB / 486.6 MB, free: 10.32 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.38e-05/0.4095, allocations: 4.625 kB / 486.6 MB, free: 10.32 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003979/0.4099, allocations: 165.8 kB / 486.8 MB, free: 10.19 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001208/0.41, allocations: 173 kB / 486.9 MB, free: 10.16 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008487/0.4185, allocations: 4.461 MB / 491.4 MB, free: 7.277 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0343/0.4528, allocations: 16.64 MB / 0.4961 GB, free: 6.543 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00874/0.4615, allocations: 8.24 MB / 0.5042 GB, free: 13.31 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003067/0.4646, allocations: 1.566 MB / 0.5057 GB, free: 11.75 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01015/0.4748, allocations: 4.973 MB / 0.5105 GB, free: 6.648 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.593e-05/0.4748, allocations: 51.62 kB / 0.5106 GB, free: 6.594 MB / 414.1 MB Notification: Performance of pre-optimization done (n=157): time 3.226e-06/0.4748, allocations: 0 / 0.5106 GB, free: 6.594 MB / 414.1 MB Notification: Performance of matching and sorting (n=160): time 0.01363/0.4884, allocations: 6.181 MB / 0.5166 GB, free: 292 kB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.856e-05/0.4885, allocations: 64.72 kB / 0.5167 GB, free: 212 kB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004773/0.4933, allocations: 2.287 MB / 0.5189 GB, free: 13.89 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001657/0.4934, allocations: 49.7 kB / 0.519 GB, free: 13.84 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001731/0.4952, allocations: 1.898 MB / 0.5208 GB, free: 11.93 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006553/0.4958, allocations: 0.5829 MB / 0.5214 GB, free: 11.36 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008243/0.4966, allocations: 395.9 kB / 0.5218 GB, free: 10.96 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001532/0.4968, allocations: 301.1 kB / 0.5221 GB, free: 10.66 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001721/0.4985, allocations: 0.8475 MB / 0.5229 GB, free: 9.812 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002346/0.5009, allocations: 1.557 MB / 0.5244 GB, free: 7.941 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003996/0.5049, allocations: 2.558 MB / 0.5269 GB, free: 5.16 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.922e-05/0.5049, allocations: 12 kB / 0.5269 GB, free: 5.148 MB / 430.1 MB Notification: Performance of matching and sorting (n=275) (initialization): time 0.005684/0.5106, allocations: 2.891 MB / 0.5297 GB, free: 2.363 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.394e-05/0.5106, allocations: 16 kB / 0.5298 GB, free: 2.348 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.586e-05/0.5107, allocations: 20 kB / 0.5298 GB, free: 2.328 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000386/0.511, allocations: 129.7 kB / 0.5299 GB, free: 2.195 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00211/0.5131, allocations: 0.5363 MB / 0.5304 GB, free: 1.691 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002434/0.5156, allocations: 1.988 MB / 0.5324 GB, free: 15.59 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002673/0.5183, allocations: 112 kB / 0.5325 GB, free: 15.48 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003007/0.5186, allocations: 104 kB / 0.5326 GB, free: 15.38 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 (269): * Single equations (assignments): 267 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 1 * 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): 1 system {(1,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.003087/0.5216, allocations: 1.193 MB / 0.5337 GB, free: 14.21 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008698/0.5225, allocations: 262.4 kB / 0.534 GB, free: 13.95 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005208/0.5277, allocations: 2.43 MB / 0.5364 GB, free: 11.48 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.747e-05/0.5277, allocations: 16 kB / 0.5364 GB, free: 11.46 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.914e-05/0.5278, allocations: 4 kB / 0.5364 GB, free: 11.46 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.643e-05/0.5278, allocations: 7.969 kB / 0.5364 GB, free: 11.45 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01273/0.5405, allocations: 5.769 MB / 0.542 GB, free: 5.613 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.218e-05/0.5405, allocations: 4 kB / 0.542 GB, free: 5.609 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001325/0.5418, allocations: 285.8 kB / 0.5423 GB, free: 5.344 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008906/0.5427, allocations: 330.2 kB / 0.5426 GB, free: 5.02 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001328/0.5429, allocations: 39.98 kB / 0.5427 GB, free: 4.98 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007625/0.5505, allocations: 6.96 MB / 0.5494 GB, free: 13.65 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.054e-06/0.5505, allocations: 7.5 kB / 0.5495 GB, free: 13.65 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006477/0.557, allocations: 3.556 MB / 0.5529 GB, free: 10.02 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00164/0.5586, allocations: 0.4993 MB / 0.5534 GB, free: 9.504 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000812/0.5594, allocations: 35.98 kB / 0.5534 GB, free: 9.469 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001671/0.5611, allocations: 79.88 kB / 0.5535 GB, free: 9.391 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003149/0.5614, allocations: 128.8 kB / 0.5536 GB, free: 9.27 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000121/0.5615, allocations: 43.98 kB / 0.5537 GB, free: 9.227 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.003443/0.565, allocations: 1.549 MB / 0.5552 GB, free: 7.664 MB / 462.1 MB Notification: Performance of sort global known variables: time 9e-08/0.565, allocations: 0 / 0.5552 GB, free: 7.664 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.003607/0.5686, allocations: 0.6679 MB / 0.5559 GB, free: 6.996 MB / 462.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.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.re,smee.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].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 (132): * Single equations (assignments): 129 * 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 {(1,5,100.0%), (1,8,100.0%), (2,15,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.007275/0.5759, allocations: 4.18 MB / 0.5599 GB, free: 2.758 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.004338/0.5802, allocations: 2.188 MB / 0.5621 GB, free: 0.6211 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 6.532e-06/0.5802, allocations: 0 / 0.5621 GB, free: 0.6211 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002439/0.5826, allocations: 1.37 MB / 0.5634 GB, free: 15.24 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004323/0.587, allocations: 0.5961 MB / 0.564 GB, free: 14.65 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05122/0.6382, allocations: 24.2 MB / 0.5876 GB, free: 5.672 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004244/0.6424, allocations: 2.665 MB / 0.5902 GB, free: 2.98 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.00236/0.6448, allocations: 0.5513 MB / 0.5908 GB, free: 2.426 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00267/0.6475, allocations: 1.464 MB / 0.5922 GB, free: 0.9609 MB / 494.1 MB Notification: Performance of SimCode: time 1.462e-06/0.6475, allocations: 0 / 0.5922 GB, free: 0.9609 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3473/0.9947, allocations: 60.01 MB / 0.6508 GB, free: 186.6 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 15.21/16.21, allocations: 10.14 kB / 0.6508 GB, free: 186.6 MB / 0.5294 GB " [Timeout remaining time 644] (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_2/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_2/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 656] Reference file matches [Calling sys.exit(0), Time elapsed: 26.78309978218749]