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.001136/0.001136, allocations: 114.5 kB / 17.73 MB, free: 5.34 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.001116/0.001116, allocations: 183 kB / 18.66 MB, free: 4.414 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.406/1.406, allocations: 205.1 MB / 224.5 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.001241/0.001241, allocations: 47.92 kB / 328.5 MB, free: 3.266 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08858/0.08983, allocations: 46.61 MB / 375.2 MB, free: 4.535 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD): time 0.2008/0.2907, allocations: 13.67 MB / 388.8 MB, free: 5.434 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.009454/0.3002, allocations: 4.512 MB / 393.3 MB, free: 2.387 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002634/0.3029, allocations: 68.44 kB / 393.4 MB, free: 2.371 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002961/0.3059, allocations: 1.089 MB / 394.5 MB, free: 1.777 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004696/0.3106, allocations: 1.416 MB / 395.9 MB, free: 0.8555 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002009/0.3126, allocations: 0.9253 MB / 396.8 MB, free: 260 kB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.006463/0.3191, allocations: 4.743 MB / 401.6 MB, free: 13.8 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004526/0.3237, allocations: 3.649 MB / 405.2 MB, free: 12.26 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004377/0.3281, allocations: 2.196 MB / 407.4 MB, free: 11.18 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0043/0.3324, allocations: 2.468 MB / 409.9 MB, free: 9.938 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009718/0.3334, allocations: 0.588 MB / 410.5 MB, free: 9.938 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002114/0.3355, allocations: 0.7888 MB / 411.3 MB, free: 9.859 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001162/0.3367, allocations: 1.339 MB / 412.6 MB, free: 8.781 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003004/0.3397, allocations: 2.468 MB / 415.1 MB, free: 6.984 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008125/0.3478, allocations: 7.764 MB / 422.8 MB, free: 15.88 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.56e-06/0.3478, allocations: 3.938 kB / 422.8 MB, free: 15.88 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.023e-06/0.3478, allocations: 0 / 422.8 MB, free: 15.88 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001501/0.348, allocations: 0 / 422.8 MB, free: 15.88 MB / 350.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.01334/0.3613, allocations: 5.037 MB / 427.9 MB, free: 10.77 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.382e-05/0.3614, allocations: 16.03 kB / 427.9 MB, free: 10.75 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004351/0.3658, allocations: 0.8664 MB / 428.8 MB, free: 9.879 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004341/0.3701, allocations: 2.655 MB / 431.4 MB, free: 7.172 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001997/0.3703, allocations: 271.6 kB / 431.7 MB, free: 6.906 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005153/0.3709, allocations: 363.8 kB / 432 MB, free: 6.551 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008044/0.3789, allocations: 5.029 MB / 437.1 MB, free: 1.469 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.342e-05/0.379, allocations: 11.89 kB / 437.1 MB, free: 1.457 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003593/0.3794, allocations: 148 kB / 437.2 MB, free: 1.312 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000143/0.3795, allocations: 163.1 kB / 437.4 MB, free: 1.152 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007168/0.3867, allocations: 4.377 MB / 441.8 MB, free: 12.77 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02365/0.4104, allocations: 15.71 MB / 457.5 MB, free: 12.68 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007813/0.4182, allocations: 7.772 MB / 465.3 MB, free: 4 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002544/0.4208, allocations: 1.714 MB / 467 MB, free: 2.289 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007771/0.4286, allocations: 4.647 MB / 471.6 MB, free: 13.55 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.888e-05/0.4286, allocations: 47.88 kB / 471.7 MB, free: 13.5 MB / 398.1 MB Notification: Performance of pre-optimization done (n=161): time 3.126e-06/0.4287, allocations: 0 / 471.7 MB, free: 13.5 MB / 398.1 MB Notification: Performance of matching and sorting (n=164): time 0.01715/0.4458, allocations: 8.131 MB / 479.8 MB, free: 5.137 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.517e-05/0.4459, allocations: 72.66 kB / 479.9 MB, free: 5.055 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003399/0.4493, allocations: 2.155 MB / 482 MB, free: 2.863 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001225/0.4494, allocations: 57.7 kB / 482.1 MB, free: 2.801 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001171/0.4506, allocations: 1.612 MB / 483.7 MB, free: 1.168 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004291/0.451, allocations: 0.5507 MB / 484.2 MB, free: 0.6094 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005832/0.4516, allocations: 359.2 kB / 484.6 MB, free: 256 kB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001337/0.4518, allocations: 309.1 kB / 484.9 MB, free: 15.95 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001523/0.4533, allocations: 0.9408 MB / 485.8 MB, free: 15 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001803/0.4551, allocations: 1.453 MB / 487.3 MB, free: 13.34 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003326/0.4585, allocations: 2.51 MB / 489.8 MB, free: 10.62 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.557e-06/0.4585, allocations: 4 kB / 489.8 MB, free: 10.62 MB / 414.1 MB Notification: Performance of matching and sorting (n=245) (initialization): time 0.005852/0.4643, allocations: 3.348 MB / 493.1 MB, free: 7.227 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.381e-05/0.4644, allocations: 16 kB / 493.2 MB, free: 7.211 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.662e-05/0.4644, allocations: 12 kB / 493.2 MB, free: 7.199 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001885/0.4663, allocations: 0.7432 MB / 493.9 MB, free: 6.441 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001518/0.4679, allocations: 383.3 kB / 494.3 MB, free: 6.066 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0145/0.4824, allocations: 11.34 MB / 0.4938 GB, free: 10.16 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002424/0.4848, allocations: 99.88 kB / 0.4939 GB, free: 10.07 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004135/0.4853, allocations: 76 kB / 0.4939 GB, free: 9.992 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.00332/0.4886, allocations: 1.212 MB / 0.4951 GB, free: 8.77 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008503/0.4895, allocations: 225.3 kB / 0.4953 GB, free: 8.547 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006583/0.4961, allocations: 3.16 MB / 0.4984 GB, free: 5.324 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.749e-05/0.4961, allocations: 19.94 kB / 0.4984 GB, free: 5.305 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.608e-05/0.4962, allocations: 12 kB / 0.4985 GB, free: 5.293 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.112e-05/0.4962, allocations: 11.97 kB / 0.4985 GB, free: 5.281 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01327/0.5095, allocations: 6.564 MB / 0.5049 GB, free: 14.57 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.618e-06/0.5095, allocations: 0 / 0.5049 GB, free: 14.57 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009123/0.5104, allocations: 171.8 kB / 0.505 GB, free: 14.4 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002588/0.513, allocations: 0.9072 MB / 0.5059 GB, free: 13.48 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001437/0.5132, allocations: 47.92 kB / 0.506 GB, free: 13.43 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02014/0.5334, allocations: 16.17 MB / 0.5218 GB, free: 12.43 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.4e-06/0.5334, allocations: 8.578 kB / 0.5218 GB, free: 12.42 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008568/0.542, allocations: 4.505 MB / 0.5262 GB, free: 7.82 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001462/0.5435, allocations: 0.5178 MB / 0.5267 GB, free: 7.281 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007164/0.5442, allocations: 39.98 kB / 0.5267 GB, free: 7.242 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001504/0.5457, allocations: 79.88 kB / 0.5268 GB, free: 7.164 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004911/0.5462, allocations: 153.1 kB / 0.5269 GB, free: 7.016 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001775/0.5464, allocations: 47.92 kB / 0.527 GB, free: 6.969 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002937/0.5494, allocations: 1.489 MB / 0.5284 GB, free: 5.461 MB / 462.1 MB Notification: Performance of sort global known variables: time 3.71e-07/0.5494, allocations: 3.938 kB / 0.5284 GB, free: 5.457 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.003083/0.5525, allocations: 0.7031 MB / 0.5291 GB, free: 4.754 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.000417/0.5529, allocations: 168.5 kB / 0.5293 GB, free: 4.582 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.005309/0.5582, allocations: 3.125 MB / 0.5323 GB, free: 1.383 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 6.593e-06/0.5583, allocations: 4 kB / 0.5323 GB, free: 1.379 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003468/0.5617, allocations: 2.256 MB / 0.5345 GB, free: 15.04 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003569/0.5653, allocations: 0.6394 MB / 0.5352 GB, free: 14.4 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01369/0.579, allocations: 6.817 MB / 0.5418 GB, free: 7.535 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003127/0.5822, allocations: 2.678 MB / 0.5444 GB, free: 4.828 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.001747/0.584, allocations: 479.4 kB / 0.5449 GB, free: 4.355 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005229/0.5845, allocations: 139.4 kB / 0.545 GB, free: 4.219 MB / 478.1 MB Notification: Performance of SimCode: time 6.92e-07/0.5845, allocations: 0 / 0.545 GB, free: 4.219 MB / 478.1 MB Notification: Performance of Templates: time 0.2607/0.8452, allocations: 36.92 MB / 0.5811 GB, free: 136.4 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/jenkins/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/jenkins/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