Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Transformer.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_Transformer,tolerance=1e-06,outputFormat="empty",numberOfIntervals=50000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Transformer") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Transformer,tolerance=1e-06,outputFormat="empty",numberOfIntervals=50000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Transformer") 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: 115.2 kB / 16.63 MB, free: 6.812 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.001091/0.001091, allocations: 189.8 kB / 17.55 MB, free: 5.934 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.322/1.322, allocations: 205.1 MB / 223.4 MB, free: 12.45 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.001143/0.001143, allocations: 39.94 kB / 279.5 MB, free: 3.504 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09644/0.0976, allocations: 46.64 MB / 326.1 MB, free: 4.793 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Transformer): time 0.01581/0.1134, allocations: 16.56 MB / 342.7 MB, free: 4.156 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0105/0.124, allocations: 5.631 MB / 348.3 MB, free: 14.5 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0035/0.1276, allocations: 91.56 kB / 348.4 MB, free: 14.41 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003524/0.1311, allocations: 1.17 MB / 349.6 MB, free: 13.24 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004994/0.1361, allocations: 1.613 MB / 351.2 MB, free: 11.62 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00235/0.1385, allocations: 0.9553 MB / 352.2 MB, free: 10.66 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.009568/0.1481, allocations: 6.452 MB / 358.6 MB, free: 4.18 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005636/0.1538, allocations: 5.287 MB / 363.9 MB, free: 14.8 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004925/0.1587, allocations: 2.833 MB / 366.7 MB, free: 11.97 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004502/0.1633, allocations: 3.343 MB / 370.1 MB, free: 8.617 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001077/0.1643, allocations: 0.7852 MB / 370.9 MB, free: 7.832 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002049/0.1664, allocations: 1.066 MB / 371.9 MB, free: 6.766 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001454/0.1679, allocations: 1.862 MB / 373.8 MB, free: 4.898 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004405/0.1723, allocations: 3.341 MB / 377.1 MB, free: 1.543 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.1857/0.358, allocations: 10.41 MB / 387.5 MB, free: 27.45 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.939e-06/0.3581, allocations: 1.156 kB / 387.5 MB, free: 27.45 MB / 318.1 MB Notification: Performance of FrontEnd: time 3.186e-06/0.3581, allocations: 0 / 387.5 MB, free: 27.45 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0004351/0.3586, allocations: 0 / 387.5 MB, free: 27.45 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: 1287 * Number of variables: 1287 Notification: Performance of Generate backend data structure: time 0.02499/0.3835, allocations: 6.502 MB / 394 MB, free: 24.58 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.108e-05/0.3836, allocations: 13.48 kB / 394.1 MB, free: 24.57 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006316/0.3899, allocations: 1.058 MB / 395.1 MB, free: 24.13 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007657/0.3976, allocations: 3.337 MB / 398.4 MB, free: 22.98 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000352/0.398, allocations: 362.6 kB / 398.8 MB, free: 22.96 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001474/0.3995, allocations: 485.5 kB / 399.3 MB, free: 22.88 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01349/0.413, allocations: 6.875 MB / 406.2 MB, free: 18.84 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001002/0.4131, allocations: 7.719 kB / 406.2 MB, free: 18.84 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004945/0.4136, allocations: 200.7 kB / 406.4 MB, free: 18.68 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001889/0.4138, allocations: 243.2 kB / 406.6 MB, free: 18.64 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01111/0.4249, allocations: 5.923 MB / 412.5 MB, free: 15.49 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04358/0.4685, allocations: 20.93 MB / 433.4 MB, free: 11.31 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01096/0.4795, allocations: 9.961 MB / 443.4 MB, free: 352 kB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004457/0.484, allocations: 2.491 MB / 445.9 MB, free: 13.86 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01371/0.4978, allocations: 6.509 MB / 452.4 MB, free: 7.328 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.908e-05/0.4979, allocations: 56.56 kB / 452.5 MB, free: 7.262 MB / 350.1 MB Notification: Performance of pre-optimization done (n=219): time 3.827e-06/0.4979, allocations: 0 / 452.5 MB, free: 7.262 MB / 350.1 MB Notification: Performance of matching and sorting (n=226): time 0.0205/0.5184, allocations: 9.673 MB / 462.1 MB, free: 13.43 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.642e-05/0.5185, allocations: 77.41 kB / 462.2 MB, free: 13.34 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005133/0.5237, allocations: 3.003 MB / 465.2 MB, free: 10.32 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004425/0.5241, allocations: 61.7 kB / 465.3 MB, free: 10.26 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001519/0.5256, allocations: 2.158 MB / 467.4 MB, free: 8.086 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008174/0.5265, allocations: 0.7584 MB / 468.2 MB, free: 7.336 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007838/0.5273, allocations: 464 kB / 468.6 MB, free: 6.879 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 9.926e-05/0.5274, allocations: 305.1 kB / 468.9 MB, free: 6.578 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002079/0.5295, allocations: 1.295 MB / 470.2 MB, free: 5.281 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002386/0.5319, allocations: 1.919 MB / 472.2 MB, free: 3.105 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004588/0.5365, allocations: 3.341 MB / 475.5 MB, free: 15.59 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.15e-05/0.5365, allocations: 12 kB / 475.5 MB, free: 15.57 MB / 382.1 MB Notification: Performance of matching and sorting (n=328) (initialization): time 0.007241/0.5437, allocations: 4.246 MB / 479.8 MB, free: 11.41 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.939e-05/0.5438, allocations: 19.81 kB / 479.8 MB, free: 11.39 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.244e-05/0.5438, allocations: 16 kB / 479.8 MB, free: 11.38 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002711/0.5466, allocations: 0.7707 MB / 480.6 MB, free: 10.59 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002503/0.5491, allocations: 0.5713 MB / 481.1 MB, free: 10.05 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01076/0.5598, allocations: 10.89 MB / 492 MB, free: 14.66 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003272/0.5632, allocations: 114.5 kB / 492.1 MB, free: 14.55 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002854/0.5635, allocations: 96 kB / 492.2 MB, free: 14.46 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 82 * Number of states: 0 () * Number of discrete variables: 6 (booleanStep2[3].y,booleanStep2[2].y,booleanStep2[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 (278): * Single equations (assignments): 273 * 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 {(3,25,77.8%), (1,8,100.0%), (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.003469/0.5669, allocations: 1.613 MB / 493.8 MB, free: 12.87 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009241/0.5679, allocations: 308.2 kB / 494.1 MB, free: 12.57 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006679/0.5746, allocations: 3.915 MB / 498.1 MB, free: 8.617 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.066e-05/0.5746, allocations: 26.41 kB / 498.1 MB, free: 8.594 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.812e-05/0.5746, allocations: 12 kB / 498.1 MB, free: 8.582 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.202e-05/0.5747, allocations: 11.95 kB / 498.1 MB, free: 8.57 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01637/0.591, allocations: 8.557 MB / 0.4948 GB, free: 15.96 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.746e-05/0.5911, allocations: 7.984 kB / 0.4948 GB, free: 15.95 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001694/0.5928, allocations: 341.8 kB / 0.4951 GB, free: 15.63 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003241/0.5961, allocations: 0.943 MB / 0.496 GB, free: 14.68 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002531/0.5964, allocations: 63.98 kB / 0.4961 GB, free: 14.61 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01561/0.612, allocations: 15.7 MB / 0.5114 GB, free: 14.18 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.067e-06/0.612, allocations: 0 / 0.5114 GB, free: 14.18 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009404/0.6214, allocations: 5.694 MB / 0.517 GB, free: 8.418 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001928/0.6234, allocations: 0.6885 MB / 0.5177 GB, free: 7.707 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005672/0.624, allocations: 55.98 kB / 0.5177 GB, free: 7.652 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001573/0.6256, allocations: 107.9 kB / 0.5178 GB, free: 7.547 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000503/0.6261, allocations: 185.4 kB / 0.518 GB, free: 7.371 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001549/0.6263, allocations: 64.55 kB / 0.5181 GB, free: 7.309 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.003373/0.6296, allocations: 2.062 MB / 0.5201 GB, free: 5.246 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.6296, allocations: 6.406 kB / 0.5201 GB, free: 5.242 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.00366/0.6333, allocations: 0.9452 MB / 0.521 GB, free: 4.297 MB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 9 (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,transformer.l1sigma.inductor[2].i,transformer.l1sigma.inductor[3].i,quadraticLoadTorque.phi) * Number of discrete variables: 6 (idealCloser.control[1],idealCloser.control[2],idealCloser.control[3],booleanStep2[1].y,booleanStep2[2].y,booleanStep2[3].y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (156): * Single equations (assignments): 150 * 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,8,100.0%), (2,26,100.0%), (1,1,100.0%), (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.0007002/0.634, allocations: 257.8 kB / 0.5213 GB, free: 4.059 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.179/0.813, allocations: 5.37 MB / 0.5265 GB, free: 149.1 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 7.805e-06/0.813, allocations: 0 / 0.5265 GB, free: 149.1 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004258/0.8173, allocations: 2.634 MB / 0.5291 GB, free: 148.4 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005197/0.8225, allocations: 0.9108 MB / 0.53 GB, free: 148.3 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01867/0.8412, allocations: 11.58 MB / 0.5413 GB, free: 142.7 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002815/0.8441, allocations: 3.429 MB / 0.5446 GB, free: 141.3 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.002752/0.8469, allocations: 0.765 MB / 0.5454 GB, free: 141.2 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005858/0.8475, allocations: 194.9 kB / 0.5455 GB, free: 141.2 MB / 430.1 MB Notification: Performance of SimCode: time 8.22e-07/0.8475, allocations: 0 / 0.5455 GB, free: 141.2 MB / 430.1 MB Notification: Performance of Templates: time 0.07246/0.9199, allocations: 50.77 MB / 0.5951 GB, free: 94.03 MB / 430.1 MB make -j1 -f Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Transformer.makefile (rm -f Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Transformer.pipe ; mkfifo Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Transformer.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Transformer.pipe >> ../files/Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Transformer.sim & ./Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Transformer -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Transformer.pipe 2>&1)