Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_DOL.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) 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: translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_DOL,tolerance=1e-06,outputFormat="mat",numberOfIntervals=60000,variableFilter="time|smee.excitation.electroMagneticConverter.Phi.re|smee.inertiaRotor.phi|smee.inertiaRotor.w|smee.is.1.|smee.is.2.|smee.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smee.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|smee.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smee.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im",fileNamePrefix="Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_DOL") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_DOL,tolerance=1e-06,outputFormat="mat",numberOfIntervals=60000,variableFilter="time|smee.excitation.electroMagneticConverter.Phi.re|smee.inertiaRotor.phi|smee.inertiaRotor.w|smee.is.1.|smee.is.2.|smee.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smee.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|smee.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smee.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im",fileNamePrefix="Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_DOL") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001573/0.001573, allocations: 104.5 kB / 17.85 MB, free: 5.656 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002008/0.002008, allocations: 205.8 kB / 18.79 MB, free: 4.727 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.428/1.428, allocations: 227.4 MB / 246.9 MB, free: 10.61 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001334/0.001334, allocations: 60.06 kB / 306.9 MB, free: 1.008 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1005/0.1019, allocations: 50.54 MB / 357.5 MB, free: 14.47 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_DOL): time 0.1808/0.2827, allocations: 17.04 MB / 374.5 MB, free: 9.848 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01011/0.2929, allocations: 5.649 MB / 380.1 MB, free: 9.172 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003511/0.2964, allocations: 100.6 kB / 380.2 MB, free: 9.148 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004199/0.3007, allocations: 1.101 MB / 381.3 MB, free: 8.719 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006/0.3068, allocations: 1.434 MB / 382.8 MB, free: 8.078 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00298/0.3098, allocations: 1.01 MB / 383.8 MB, free: 7.512 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.008414/0.3182, allocations: 5.41 MB / 389.2 MB, free: 5.117 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005264/0.3235, allocations: 3.663 MB / 392.9 MB, free: 3.562 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003867/0.3274, allocations: 1.857 MB / 394.7 MB, free: 2.734 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004825/0.3322, allocations: 2.449 MB / 397.2 MB, free: 1.652 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001018/0.3333, allocations: 369 kB / 397.5 MB, free: 1.652 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002366/0.3357, allocations: 0.6146 MB / 398.1 MB, free: 1.547 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009179/0.3366, allocations: 1.157 MB / 399.3 MB, free: 0.6719 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002939/0.3395, allocations: 2.366 MB / 401.7 MB, free: 15.04 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006049/0.3456, allocations: 6.818 MB / 408.5 MB, free: 9.234 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.313e-06/0.3456, allocations: 3.984 kB / 408.5 MB, free: 9.23 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.463e-06/0.3456, allocations: 0 / 408.5 MB, free: 9.23 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0001929/0.3458, allocations: 3.938 kB / 408.5 MB, free: 9.227 MB / 318.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.01363/0.3595, allocations: 5.402 MB / 413.9 MB, free: 3.773 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.667e-05/0.3595, allocations: 12.03 kB / 413.9 MB, free: 3.762 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005501/0.365, allocations: 1.024 MB / 414.9 MB, free: 2.738 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005398/0.3705, allocations: 2.848 MB / 417.8 MB, free: 15.88 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002551/0.3707, allocations: 308.4 kB / 418.1 MB, free: 15.57 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007249/0.3715, allocations: 393.5 kB / 418.5 MB, free: 15.19 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009379/0.3809, allocations: 5.217 MB / 423.7 MB, free: 9.883 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.705e-05/0.381, allocations: 11.98 kB / 423.7 MB, free: 9.871 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003522/0.3813, allocations: 162.6 kB / 423.8 MB, free: 9.715 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001513/0.3815, allocations: 168 kB / 424 MB, free: 9.547 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007994/0.3895, allocations: 4.466 MB / 428.5 MB, free: 5.062 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02609/0.4156, allocations: 16.92 MB / 445.4 MB, free: 3.785 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007358/0.423, allocations: 8.705 MB / 454.1 MB, free: 10 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003443/0.4265, allocations: 2.002 MB / 456.1 MB, free: 8.004 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009075/0.4356, allocations: 5.802 MB / 461.9 MB, free: 1.93 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.883e-05/0.4356, allocations: 51.88 kB / 462 MB, free: 1.867 MB / 366.1 MB Notification: Performance of pre-optimization done (n=157): time 3.426e-06/0.4356, allocations: 0 / 462 MB, free: 1.867 MB / 366.1 MB Notification: Performance of matching and sorting (n=160): time 0.01193/0.4476, allocations: 6.311 MB / 468.3 MB, free: 11.4 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.941e-05/0.4476, allocations: 72.66 kB / 468.3 MB, free: 11.32 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003348/0.451, allocations: 2.339 MB / 470.7 MB, free: 8.953 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000148/0.4512, allocations: 49.7 kB / 470.7 MB, free: 8.898 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001265/0.4524, allocations: 1.863 MB / 472.6 MB, free: 7.02 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004644/0.4529, allocations: 0.5563 MB / 473.1 MB, free: 6.469 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000578/0.4535, allocations: 391.7 kB / 473.5 MB, free: 6.078 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 9.567e-05/0.4536, allocations: 301.1 kB / 473.8 MB, free: 5.781 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001404/0.455, allocations: 0.867 MB / 474.7 MB, free: 4.91 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001822/0.4568, allocations: 1.571 MB / 476.3 MB, free: 3.016 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00333/0.4602, allocations: 2.586 MB / 478.8 MB, free: 116 kB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.296e-05/0.4602, allocations: 8 kB / 478.8 MB, free: 108 kB / 382.1 MB Notification: Performance of matching and sorting (n=275) (initialization): time 0.004973/0.4652, allocations: 2.97 MB / 481.8 MB, free: 13.1 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.979e-05/0.4652, allocations: 16 kB / 481.8 MB, free: 13.08 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.881e-05/0.4653, allocations: 20 kB / 481.9 MB, free: 13.06 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004327/0.4657, allocations: 182 kB / 482 MB, free: 12.88 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001864/0.4676, allocations: 0.5342 MB / 482.6 MB, free: 12.34 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002303/0.4699, allocations: 2.264 MB / 484.8 MB, free: 9.934 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001869/0.4718, allocations: 107.9 kB / 484.9 MB, free: 9.828 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001735/0.472, allocations: 99.98 kB / 485 MB, free: 9.73 MB / 398.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 (266): * Single equations (assignments): 264 * 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,8,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002113/0.4741, allocations: 1.2 MB / 486.2 MB, free: 8.52 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004853/0.4746, allocations: 256.9 kB / 486.5 MB, free: 8.266 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004304/0.4789, allocations: 2.527 MB / 489 MB, free: 5.684 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.748e-05/0.4789, allocations: 23.81 kB / 489 MB, free: 5.664 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.138e-05/0.4789, allocations: 8 kB / 489 MB, free: 5.656 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.738e-05/0.479, allocations: 7.969 kB / 489.1 MB, free: 5.648 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01001/0.489, allocations: 5.941 MB / 495 MB, free: 15.61 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.743e-06/0.489, allocations: 0 / 495 MB, free: 15.61 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001225/0.4902, allocations: 279.6 kB / 495.3 MB, free: 15.34 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009832/0.4912, allocations: 384.9 kB / 495.6 MB, free: 14.96 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001/0.4914, allocations: 39.98 kB / 495.7 MB, free: 14.92 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007099/0.4985, allocations: 6.813 MB / 0.4907 GB, free: 7.703 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.669e-06/0.4985, allocations: 4 kB / 0.4907 GB, free: 7.699 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005856/0.5043, allocations: 3.668 MB / 0.4943 GB, free: 3.957 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001183/0.5055, allocations: 0.494 MB / 0.4948 GB, free: 3.441 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003167/0.5059, allocations: 36 kB / 0.4948 GB, free: 3.406 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001112/0.507, allocations: 83.92 kB / 0.4949 GB, free: 3.324 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002925/0.5073, allocations: 117.1 kB / 0.495 GB, free: 3.207 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001002/0.5074, allocations: 51.92 kB / 0.4951 GB, free: 3.156 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.002361/0.5098, allocations: 1.585 MB / 0.4966 GB, free: 1.559 MB / 414.1 MB Notification: Performance of sort global known variables: time 3.81e-07/0.5098, allocations: 0 / 0.4966 GB, free: 1.559 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.002332/0.5121, allocations: 0.6836 MB / 0.4973 GB, free: 0.875 MB / 414.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 (129): * Single equations (assignments): 126 * 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,8,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.0003998/0.5125, allocations: 189.3 kB / 0.4975 GB, free: 0.6836 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.003844/0.5164, allocations: 2.315 MB / 0.4997 GB, free: 14.33 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 4.709e-06/0.5164, allocations: 1.875 kB / 0.4997 GB, free: 14.33 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002271/0.5187, allocations: 1.479 MB / 0.5012 GB, free: 12.81 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002837/0.5215, allocations: 0.5774 MB / 0.5017 GB, free: 12.24 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01321/0.5348, allocations: 8.657 MB / 0.5102 GB, free: 3.547 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00226/0.5371, allocations: 2.612 MB / 0.5127 GB, free: 0.9141 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000893/0.538, allocations: 179.4 kB / 0.5129 GB, free: 0.7383 MB / 430.1 MB Notification: Performance of SimCode: time 1.173e-06/0.538, allocations: 0 / 0.5129 GB, free: 0.7383 MB / 430.1 MB Notification: Performance of Templates: time 0.2746/0.8126, allocations: 96.03 MB / 0.6067 GB, free: 82 MB / 446.1 MB make -j1 -f Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_DOL.makefile (rm -f Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_DOL.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_DOL.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_DOL.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_DOL.sim & ./Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_DOL -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_DOL.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_DOL.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches