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.001104/0.001104, allocations: 113.9 kB / 17.73 MB, free: 5.234 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.00104/0.00104, allocations: 187.1 kB / 18.66 MB, free: 4.309 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.387/1.387, allocations: 205.1 MB / 224.5 MB, free: 12.25 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.001272/0.001272, allocations: 60.3 kB / 328.5 MB, free: 3.293 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1003/0.1016, allocations: 46.62 MB / 375.2 MB, free: 4.562 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD): time 0.2097/0.3113, allocations: 13.67 MB / 388.8 MB, free: 5.434 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.00902/0.3204, allocations: 4.509 MB / 393.3 MB, free: 2.418 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003076/0.3236, allocations: 73.62 kB / 393.4 MB, free: 2.398 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003318/0.3269, allocations: 1.043 MB / 394.5 MB, free: 1.84 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005095/0.332, allocations: 1.376 MB / 395.8 MB, free: 0.9375 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002541/0.3346, allocations: 0.9202 MB / 396.8 MB, free: 352 kB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.008501/0.3431, allocations: 4.743 MB / 401.5 MB, free: 13.89 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006986/0.3501, allocations: 3.637 MB / 405.1 MB, free: 12.36 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004765/0.3549, allocations: 2.203 MB / 407.3 MB, free: 11.27 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005059/0.36, allocations: 2.464 MB / 409.8 MB, free: 10.04 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002016/0.362, allocations: 0.5934 MB / 410.4 MB, free: 10.03 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003464/0.3655, allocations: 0.7928 MB / 411.2 MB, free: 9.945 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002122/0.3676, allocations: 1.335 MB / 412.5 MB, free: 8.871 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003988/0.3716, allocations: 2.468 MB / 415 MB, free: 7.074 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008163/0.3798, allocations: 7.764 MB / 422.8 MB, free: 8 kB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.811e-06/0.3799, allocations: 0 / 422.8 MB, free: 8 kB / 334.1 MB Notification: Performance of FrontEnd: time 1.703e-06/0.3799, allocations: 3.938 kB / 422.8 MB, free: 4 kB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0001611/0.38, allocations: 4 kB / 422.8 MB, free: 0 / 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.01269/0.3927, allocations: 5.025 MB / 427.8 MB, free: 10.9 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.046e-05/0.3928, allocations: 15.97 kB / 427.8 MB, free: 10.89 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004303/0.3971, allocations: 0.8664 MB / 428.7 MB, free: 10.02 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004624/0.4017, allocations: 2.659 MB / 431.3 MB, free: 7.305 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002124/0.402, allocations: 267.6 kB / 431.6 MB, free: 7.043 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006103/0.4026, allocations: 367.8 kB / 431.9 MB, free: 6.684 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008929/0.4115, allocations: 5.036 MB / 437 MB, free: 1.594 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.692e-05/0.4116, allocations: 11.78 kB / 437 MB, free: 1.582 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003375/0.412, allocations: 144 kB / 437.1 MB, free: 1.441 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001477/0.4121, allocations: 163.2 kB / 437.3 MB, free: 1.281 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007119/0.4192, allocations: 4.381 MB / 441.7 MB, free: 12.89 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02417/0.4434, allocations: 15.7 MB / 457.4 MB, free: 12.81 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007863/0.4513, allocations: 7.784 MB / 465.2 MB, free: 4.125 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002818/0.4542, allocations: 1.714 MB / 466.9 MB, free: 2.414 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008346/0.4626, allocations: 4.643 MB / 471.5 MB, free: 13.68 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.239e-05/0.4627, allocations: 51.88 kB / 471.6 MB, free: 13.62 MB / 398.1 MB Notification: Performance of pre-optimization done (n=161): time 3.617e-06/0.4627, allocations: 0 / 471.6 MB, free: 13.62 MB / 398.1 MB Notification: Performance of matching and sorting (n=164): time 0.01741/0.4801, allocations: 8.127 MB / 479.7 MB, free: 5.266 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.528e-05/0.4802, allocations: 72.72 kB / 479.8 MB, free: 5.184 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003253/0.4834, allocations: 2.163 MB / 481.9 MB, free: 2.984 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001593/0.4836, allocations: 49.7 kB / 482 MB, free: 2.93 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00113/0.4847, allocations: 1.616 MB / 483.6 MB, free: 1.293 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000512/0.4852, allocations: 0.5468 MB / 484.1 MB, free: 0.7383 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006367/0.4859, allocations: 359.2 kB / 484.5 MB, free: 388 kB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001229/0.486, allocations: 305.1 kB / 484.8 MB, free: 80 kB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001491/0.4875, allocations: 0.9448 MB / 485.7 MB, free: 15.13 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001823/0.4894, allocations: 1.453 MB / 487.2 MB, free: 13.46 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003448/0.4928, allocations: 2.51 MB / 489.7 MB, free: 10.75 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.606e-06/0.4928, allocations: 7.938 kB / 489.7 MB, free: 10.74 MB / 414.1 MB Notification: Performance of matching and sorting (n=245) (initialization): time 0.005472/0.4983, allocations: 3.347 MB / 493.1 MB, free: 7.348 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.827e-05/0.4984, allocations: 12 kB / 493.1 MB, free: 7.336 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.447e-05/0.4984, allocations: 16.47 kB / 493.1 MB, free: 7.32 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001808/0.5002, allocations: 0.7354 MB / 493.8 MB, free: 6.57 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00141/0.5016, allocations: 379.4 kB / 494.2 MB, free: 6.199 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01301/0.5147, allocations: 11.34 MB / 0.4937 GB, free: 10.3 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001944/0.5166, allocations: 95.8 kB / 0.4938 GB, free: 10.21 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000154/0.5168, allocations: 79.98 kB / 0.4938 GB, free: 10.13 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.002416/0.5192, allocations: 1.213 MB / 0.495 GB, free: 8.906 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004452/0.5197, allocations: 229.2 kB / 0.4952 GB, free: 8.68 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005462/0.5251, allocations: 3.16 MB / 0.4983 GB, free: 5.457 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.522e-05/0.5252, allocations: 19.94 kB / 0.4984 GB, free: 5.438 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.415e-05/0.5252, allocations: 12 kB / 0.4984 GB, free: 5.426 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.553e-05/0.5252, allocations: 8.344 kB / 0.4984 GB, free: 5.418 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01364/0.5389, allocations: 6.568 MB / 0.5048 GB, free: 14.7 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.034e-05/0.5389, allocations: 0 / 0.5048 GB, free: 14.7 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00129/0.5402, allocations: 183.9 kB / 0.505 GB, free: 14.52 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003597/0.5438, allocations: 0.9066 MB / 0.5058 GB, free: 13.6 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002013/0.544, allocations: 39.98 kB / 0.5059 GB, free: 13.56 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02595/0.57, allocations: 16.17 MB / 0.5217 GB, free: 12.55 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.267e-06/0.5701, allocations: 12.19 kB / 0.5217 GB, free: 12.54 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01099/0.5811, allocations: 4.509 MB / 0.5261 GB, free: 7.941 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001986/0.5831, allocations: 0.5139 MB / 0.5266 GB, free: 7.406 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005264/0.5837, allocations: 36 kB / 0.5266 GB, free: 7.371 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001495/0.5852, allocations: 79.88 kB / 0.5267 GB, free: 7.293 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006373/0.5858, allocations: 161.1 kB / 0.5269 GB, free: 7.137 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001569/0.586, allocations: 47.98 kB / 0.5269 GB, free: 7.09 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.003329/0.5893, allocations: 1.481 MB / 0.5283 GB, free: 5.59 MB / 462.1 MB Notification: Performance of sort global known variables: time 2.41e-07/0.5894, allocations: 0 / 0.5283 GB, free: 5.59 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.004021/0.5934, allocations: 0.6992 MB / 0.529 GB, free: 4.891 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.0003861/0.5938, allocations: 180 kB / 0.5292 GB, free: 4.707 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.006439/0.6002, allocations: 3.126 MB / 0.5323 GB, free: 1.508 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 8.907e-06/0.6003, allocations: 4.062 kB / 0.5323 GB, free: 1.504 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004998/0.6053, allocations: 2.255 MB / 0.5345 GB, free: 15.17 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004844/0.6102, allocations: 0.6484 MB / 0.5351 GB, free: 14.52 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01785/0.6281, allocations: 6.797 MB / 0.5417 GB, free: 7.672 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003569/0.6317, allocations: 2.674 MB / 0.5443 GB, free: 4.969 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.002758/0.6345, allocations: 475.4 kB / 0.5448 GB, free: 4.5 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007649/0.6353, allocations: 147.4 kB / 0.5449 GB, free: 4.355 MB / 478.1 MB Notification: Performance of SimCode: time 1.864e-06/0.6353, allocations: 3.938 kB / 0.5449 GB, free: 4.352 MB / 478.1 MB Notification: Performance of Templates: time 0.2895/0.9248, allocations: 36.92 MB / 0.581 GB, free: 136.5 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