Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_DOL.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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: translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.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_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_DOL") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.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_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_DOL") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001512/0.001512, allocations: 108.4 kB / 18.34 MB, free: 4.676 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001803/0.001803, allocations: 186.9 kB / 19.28 MB, free: 3.75 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.388/1.388, allocations: 205.1 MB / 225.2 MB, free: 12.24 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001177/0.001177, allocations: 51.92 kB / 282.1 MB, free: 2.449 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08006/0.08125, allocations: 46.63 MB / 328.7 MB, free: 3.742 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_DOL): time 0.01678/0.09807, allocations: 16.59 MB / 345.3 MB, free: 3.066 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01002/0.1081, allocations: 5.445 MB / 350.8 MB, free: 13.61 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003321/0.1115, allocations: 91.62 kB / 350.9 MB, free: 13.52 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003944/0.1155, allocations: 1.246 MB / 352.1 MB, free: 12.26 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005142/0.1207, allocations: 1.592 MB / 353.7 MB, free: 10.66 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002831/0.1235, allocations: 1.056 MB / 354.7 MB, free: 9.602 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.00629/0.1298, allocations: 5.133 MB / 359.9 MB, free: 4.445 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005055/0.1349, allocations: 3.845 MB / 363.7 MB, free: 0.5195 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003547/0.1385, allocations: 2.173 MB / 365.9 MB, free: 14.34 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004656/0.1432, allocations: 2.603 MB / 368.5 MB, free: 11.72 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001896/0.1451, allocations: 0.6133 MB / 369.1 MB, free: 11.11 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002839/0.1479, allocations: 0.8316 MB / 369.9 MB, free: 10.28 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002038/0.15, allocations: 1.414 MB / 371.4 MB, free: 8.863 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004113/0.1541, allocations: 2.637 MB / 374 MB, free: 6.215 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.1608/0.315, allocations: 8.059 MB / 382.1 MB, free: 25.37 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.061e-06/0.315, allocations: 1.375 kB / 382.1 MB, free: 25.37 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.084e-06/0.315, allocations: 0.9375 kB / 382.1 MB, free: 25.37 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0001976/0.3152, allocations: 2.906 kB / 382.1 MB, free: 25.37 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.01291/0.3281, allocations: 5.37 MB / 387.4 MB, free: 23.56 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.677e-05/0.3282, allocations: 10.19 kB / 387.4 MB, free: 23.56 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005259/0.3335, allocations: 0.9915 MB / 388.4 MB, free: 23.32 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00551/0.339, allocations: 2.803 MB / 391.2 MB, free: 22.7 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002197/0.3392, allocations: 299.4 kB / 391.5 MB, free: 22.69 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007571/0.34, allocations: 397.2 kB / 391.9 MB, free: 22.69 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009023/0.349, allocations: 5.214 MB / 397.1 MB, free: 22.06 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.362e-05/0.3492, allocations: 8.641 kB / 397.1 MB, free: 22.05 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003594/0.3495, allocations: 165.3 kB / 397.3 MB, free: 21.93 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001527/0.3497, allocations: 176.5 kB / 397.5 MB, free: 21.91 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007375/0.3571, allocations: 4.436 MB / 401.9 MB, free: 20.21 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02116/0.3782, allocations: 16.59 MB / 418.5 MB, free: 7.387 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005456/0.3837, allocations: 8.408 MB / 426.9 MB, free: 13.97 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0027/0.3865, allocations: 1.705 MB / 428.6 MB, free: 12.28 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007707/0.3942, allocations: 4.948 MB / 433.6 MB, free: 7.203 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.768e-05/0.3942, allocations: 51.16 kB / 433.6 MB, free: 7.148 MB / 334.1 MB Notification: Performance of pre-optimization done (n=156): time 3.567e-06/0.3943, allocations: 0 / 433.6 MB, free: 7.148 MB / 334.1 MB Notification: Performance of matching and sorting (n=159): time 0.01109/0.4054, allocations: 6.114 MB / 439.7 MB, free: 0.8984 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.888e-05/0.4054, allocations: 68.72 kB / 439.8 MB, free: 0.8203 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003054/0.4085, allocations: 2.289 MB / 442.1 MB, free: 14.51 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001269/0.4086, allocations: 57.69 kB / 442.1 MB, free: 14.45 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001109/0.4097, allocations: 1.845 MB / 444 MB, free: 12.59 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004022/0.4101, allocations: 0.5479 MB / 444.5 MB, free: 12.04 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005537/0.4107, allocations: 395.6 kB / 444.9 MB, free: 11.65 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 8.144e-05/0.4108, allocations: 309.1 kB / 445.2 MB, free: 11.34 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001396/0.4122, allocations: 0.8397 MB / 446.1 MB, free: 10.5 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001808/0.414, allocations: 1.559 MB / 447.6 MB, free: 8.621 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003232/0.4173, allocations: 2.557 MB / 450.2 MB, free: 5.836 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.115e-05/0.4173, allocations: 8 kB / 450.2 MB, free: 5.828 MB / 350.1 MB Notification: Performance of matching and sorting (n=275) (initialization): time 0.004568/0.4219, allocations: 2.875 MB / 453.1 MB, free: 3.059 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.664e-05/0.4219, allocations: 12.62 kB / 453.1 MB, free: 3.047 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.468e-05/0.4219, allocations: 27.94 kB / 453.1 MB, free: 3.02 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002923/0.4222, allocations: 130.2 kB / 453.2 MB, free: 2.887 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001949/0.4242, allocations: 0.5338 MB / 453.8 MB, free: 2.387 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00157/0.4258, allocations: 2.006 MB / 455.8 MB, free: 272 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001631/0.4274, allocations: 107.8 kB / 455.9 MB, free: 164 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001397/0.4276, allocations: 102.1 kB / 456 MB, free: 64 kB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 104 * 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.001745/0.4293, allocations: 1.19 MB / 457.2 MB, free: 14.89 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003331/0.4297, allocations: 245 kB / 457.4 MB, free: 14.65 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003831/0.4335, allocations: 2.438 MB / 459.8 MB, free: 12.18 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.05e-05/0.4335, allocations: 16 kB / 459.8 MB, free: 12.16 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.967e-06/0.4335, allocations: 8 kB / 459.9 MB, free: 12.15 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.939e-05/0.4336, allocations: 7.969 kB / 459.9 MB, free: 12.14 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008439/0.442, allocations: 5.766 MB / 465.6 MB, free: 6.309 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.871e-06/0.442, allocations: 0 / 465.6 MB, free: 6.309 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001235/0.4433, allocations: 289.6 kB / 465.9 MB, free: 6.039 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007716/0.4441, allocations: 317.2 kB / 466.2 MB, free: 5.727 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.789e-05/0.4442, allocations: 42.06 kB / 466.3 MB, free: 5.688 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006001/0.4502, allocations: 6.954 MB / 473.2 MB, free: 14.35 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.638e-06/0.4502, allocations: 7.984 kB / 473.2 MB, free: 14.34 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005139/0.4553, allocations: 3.548 MB / 476.8 MB, free: 10.72 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001024/0.4564, allocations: 497.9 kB / 477.3 MB, free: 10.21 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002878/0.4567, allocations: 43.92 kB / 477.3 MB, free: 10.17 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001104/0.4578, allocations: 79.94 kB / 477.4 MB, free: 10.09 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002273/0.458, allocations: 113.1 kB / 477.5 MB, free: 9.984 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.583e-05/0.4581, allocations: 47.98 kB / 477.5 MB, free: 9.938 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.00208/0.4602, allocations: 1.552 MB / 479.1 MB, free: 8.371 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.41e-07/0.4602, allocations: 3.562 kB / 479.1 MB, free: 8.371 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001931/0.4622, allocations: 0.6641 MB / 479.8 MB, free: 7.707 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * 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.0002888/0.4625, allocations: 164.5 kB / 479.9 MB, free: 7.547 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.003303/0.4658, allocations: 2.271 MB / 482.2 MB, free: 5.328 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.035e-06/0.4658, allocations: 0 / 482.2 MB, free: 5.328 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002026/0.4678, allocations: 1.451 MB / 483.6 MB, free: 3.867 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002081/0.4699, allocations: 0.612 MB / 484.3 MB, free: 3.258 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009846/0.4798, allocations: 6.865 MB / 491.1 MB, free: 12.37 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002266/0.4821, allocations: 2.661 MB / 493.8 MB, free: 9.684 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.001676/0.4837, allocations: 0.5552 MB / 494.3 MB, free: 9.125 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000442/0.4842, allocations: 167.4 kB / 494.5 MB, free: 8.961 MB / 398.1 MB Notification: Performance of SimCode: time 1.904e-06/0.4842, allocations: 0 / 494.5 MB, free: 8.961 MB / 398.1 MB Notification: Performance of Templates: time 0.05117/0.5354, allocations: 30.09 MB / 0.5123 GB, free: 10.97 MB / 430.1 MB make -j1 -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_DOL.makefile (rm -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_DOL.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_DOL.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_DOL.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_DOL.sim & ./Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_DOL -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_DOL.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_DOL_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/SMEE_DOL/SMEE_DOL.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_DOL.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches