Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD.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.AIMC_YD,tolerance=1e-06,outputFormat="mat",numberOfIntervals=50000,variableFilter="time|aimc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|aimc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|aimc.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|aimc.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|// aimc.stator.zeroInductor.i0|aimc.is.1.|aimc.is.2.|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD,tolerance=1e-06,outputFormat="mat",numberOfIntervals=50000,variableFilter="time|aimc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|aimc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|aimc.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|aimc.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|// aimc.stator.zeroInductor.i0|aimc.is.1.|aimc.is.2.|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001126/0.001126, allocations: 105.4 kB / 18.4 MB, free: 4.648 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.001151/0.001151, allocations: 189.2 kB / 19.33 MB, free: 3.727 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.351/1.351, 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.001694/0.001694, allocations: 56.27 kB / 329.2 MB, free: 3.305 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08922/0.09092, allocations: 46.62 MB / 375.8 MB, free: 4.578 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD): time 0.1912/0.2822, allocations: 13.67 MB / 389.5 MB, free: 5.477 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.00918/0.2914, allocations: 4.51 MB / 394 MB, free: 2.457 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002424/0.2939, allocations: 73.38 kB / 394.1 MB, free: 2.438 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003189/0.2971, allocations: 1.038 MB / 395.1 MB, free: 1.883 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004956/0.3021, allocations: 1.381 MB / 396.5 MB, free: 0.9805 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002656/0.3048, allocations: 0.9136 MB / 397.4 MB, free: 400 kB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.007125/0.3119, allocations: 4.749 MB / 402.2 MB, free: 13.93 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007445/0.3194, allocations: 3.64 MB / 405.8 MB, free: 12.39 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004723/0.3242, allocations: 2.203 MB / 408 MB, free: 11.3 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00543/0.3297, allocations: 2.46 MB / 410.5 MB, free: 10.07 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002007/0.3317, allocations: 0.5895 MB / 411.1 MB, free: 10.07 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003089/0.3348, allocations: 0.7979 MB / 411.9 MB, free: 9.977 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002182/0.337, allocations: 1.335 MB / 413.2 MB, free: 8.902 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004838/0.3419, allocations: 2.469 MB / 415.7 MB, free: 7.105 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009845/0.3517, allocations: 7.764 MB / 423.4 MB, free: 24 kB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.884e-06/0.3518, allocations: 0 / 423.4 MB, free: 24 kB / 334.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.3518, allocations: 3.938 kB / 423.4 MB, free: 20 kB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0002314/0.352, allocations: 0 / 423.4 MB, free: 20 kB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 945 * Number of variables: 945 Notification: Performance of Generate backend data structure: time 0.0144/0.3664, allocations: 5.037 MB / 428.5 MB, free: 10.91 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.5e-05/0.3665, allocations: 8.031 kB / 428.5 MB, free: 10.9 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005056/0.3716, allocations: 0.8742 MB / 429.3 MB, free: 10.02 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00538/0.377, allocations: 2.651 MB / 432 MB, free: 7.32 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002696/0.3773, allocations: 271.6 kB / 432.3 MB, free: 7.055 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001098/0.3784, allocations: 363.8 kB / 432.6 MB, free: 6.699 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01112/0.3895, allocations: 5.036 MB / 437.7 MB, free: 1.609 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001137/0.3897, allocations: 11.91 kB / 437.7 MB, free: 1.598 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006782/0.3904, allocations: 144 kB / 437.8 MB, free: 1.457 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001643/0.3905, allocations: 163.2 kB / 438 MB, free: 1.297 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00887/0.3994, allocations: 4.377 MB / 442.3 MB, free: 12.91 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03225/0.4317, allocations: 15.7 MB / 458 MB, free: 12.83 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009132/0.4409, allocations: 7.788 MB / 465.8 MB, free: 4.141 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002709/0.4436, allocations: 1.718 MB / 467.6 MB, free: 2.426 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008027/0.4517, allocations: 4.643 MB / 472.2 MB, free: 13.69 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.016e-05/0.4517, allocations: 47.88 kB / 472.2 MB, free: 13.64 MB / 398.1 MB Notification: Performance of pre-optimization done (n=161): time 3.477e-06/0.4517, allocations: 0 / 472.2 MB, free: 13.64 MB / 398.1 MB Notification: Performance of matching and sorting (n=164): time 0.01683/0.4686, allocations: 8.127 MB / 480.4 MB, free: 5.281 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.487e-05/0.4687, allocations: 68.72 kB / 480.4 MB, free: 5.203 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003715/0.4724, allocations: 2.163 MB / 482.6 MB, free: 3.004 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001888/0.4726, allocations: 57.7 kB / 482.7 MB, free: 2.941 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001125/0.4737, allocations: 1.616 MB / 484.3 MB, free: 1.305 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005156/0.4743, allocations: 0.539 MB / 484.8 MB, free: 0.7578 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006278/0.4749, allocations: 359.2 kB / 485.2 MB, free: 408 kB / 398.1 MB Notification: Performance of setup shared object (initialization): time 8.94e-05/0.475, allocations: 305.1 kB / 485.5 MB, free: 100 kB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001539/0.4765, allocations: 0.9447 MB / 486.4 MB, free: 15.15 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001824/0.4784, allocations: 1.461 MB / 487.9 MB, free: 13.48 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003401/0.4818, allocations: 2.503 MB / 490.4 MB, free: 10.77 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.099e-05/0.4818, allocations: 7.938 kB / 490.4 MB, free: 10.76 MB / 414.1 MB Notification: Performance of matching and sorting (n=245) (initialization): time 0.005631/0.4875, allocations: 3.347 MB / 493.7 MB, free: 7.371 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.817e-05/0.4875, allocations: 12 kB / 493.7 MB, free: 7.359 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.66e-05/0.4875, allocations: 16 kB / 493.8 MB, free: 7.344 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001789/0.4893, allocations: 0.7397 MB / 494.5 MB, free: 6.59 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001505/0.4909, allocations: 371.4 kB / 494.9 MB, free: 6.227 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01164/0.5025, allocations: 11.36 MB / 0.4943 GB, free: 10.3 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001811/0.5044, allocations: 95.73 kB / 0.4944 GB, free: 10.21 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002688/0.5046, allocations: 72 kB / 0.4945 GB, free: 10.14 MB / 430.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 69 * Number of states: 0 () * Number of discrete variables: 6 (booleanStepYD[3].y,booleanStepYD[2].y,booleanStepYD[1].y,idealCloser.control[3],idealCloser.control[2],idealCloser.control[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (195): * Single equations (assignments): 190 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * 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,8,100.0%), (9,19,33.3%), (1,1,100.0%), (1,13,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002182/0.5068, allocations: 1.212 MB / 0.4957 GB, free: 8.918 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005651/0.5074, allocations: 233.2 kB / 0.4959 GB, free: 8.688 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005603/0.513, allocations: 3.16 MB / 0.499 GB, free: 5.465 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.852e-05/0.5131, allocations: 19.94 kB / 0.499 GB, free: 5.445 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.03e-05/0.5131, allocations: 8 kB / 0.499 GB, free: 5.438 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.786e-05/0.5131, allocations: 7.969 kB / 0.499 GB, free: 5.43 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01087/0.524, allocations: 6.572 MB / 0.5055 GB, free: 14.71 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.895e-06/0.524, allocations: 0 / 0.5055 GB, free: 14.71 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008468/0.5249, allocations: 183.9 kB / 0.5056 GB, free: 14.54 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002222/0.5271, allocations: 0.9028 MB / 0.5065 GB, free: 13.61 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001324/0.5273, allocations: 39.98 kB / 0.5065 GB, free: 13.57 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01599/0.5433, allocations: 16.16 MB / 0.5223 GB, free: 12.57 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.579e-06/0.5433, allocations: 3.938 kB / 0.5223 GB, free: 12.57 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007641/0.551, allocations: 4.506 MB / 0.5267 GB, free: 7.969 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001172/0.5522, allocations: 0.5217 MB / 0.5272 GB, free: 7.426 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004833/0.5527, allocations: 36 kB / 0.5273 GB, free: 7.391 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001165/0.5538, allocations: 83.88 kB / 0.5274 GB, free: 7.309 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000405/0.5543, allocations: 157 kB / 0.5275 GB, free: 7.156 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001089/0.5544, allocations: 44.55 kB / 0.5276 GB, free: 7.113 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002835/0.5572, allocations: 1.485 MB / 0.529 GB, free: 5.609 MB / 462.1 MB Notification: Performance of sort global known variables: time 2.3e-07/0.5572, allocations: 0 / 0.529 GB, free: 5.609 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.002894/0.5601, allocations: 0.7031 MB / 0.5297 GB, free: 4.906 MB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 7 (aimc.inertiaRotor.w,aimc.stator.zeroInductor.i0,aimc.stator.core.Phi.re,aimc.stator.core.Phi.im,aimc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.re,aimc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.im,quadraticLoadTorque.phi) * Number of discrete variables: 6 (idealCloser.control[1],idealCloser.control[2],idealCloser.control[3],booleanStepYD[1].y,booleanStepYD[2].y,booleanStepYD[3].y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (94): * Single equations (assignments): 88 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * 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,8,100.0%), (9,19,33.3%), (1,13,100.0%), (1,8,100.0%), (2,12,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0004188/0.5606, allocations: 186.9 kB / 0.5299 GB, free: 4.715 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.00497/0.5655, allocations: 3.114 MB / 0.5329 GB, free: 1.527 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 5.75e-06/0.5656, allocations: 0 / 0.5329 GB, free: 1.527 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003727/0.5693, allocations: 2.259 MB / 0.5351 GB, free: 15.19 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003355/0.5727, allocations: 0.6465 MB / 0.5357 GB, free: 14.54 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0126/0.5853, allocations: 6.771 MB / 0.5424 GB, free: 7.715 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002731/0.5881, allocations: 2.619 MB / 0.5449 GB, free: 5.066 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006262/0.5887, allocations: 155.4 kB / 0.5451 GB, free: 4.914 MB / 478.1 MB Notification: Performance of SimCode: time 1.974e-06/0.5887, allocations: 0 / 0.5451 GB, free: 4.914 MB / 478.1 MB Notification: Performance of Templates: time 0.2979/0.8867, allocations: 152 MB / 0.6935 GB, free: 21.47 MB / 478.1 MB make -j1 -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD.makefile (rm -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD.sim & ./Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/AIMC_YD/AIMC_YD.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches