Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_withLosses.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_withLosses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=100000,variableFilter="time|PI.x|aimc.airGap.V_mrr.im|aimc.airGap.V_mrr.re|aimc.airGap.V_msr.im|aimc.airGap.V_msr.re|aimc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|aimc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|aimc.stator.core.Phi.im|aimc.stator.core.Phi.re|aimc.stator.strayReluctance.port_p.Phi.im|aimc.stator.strayReluctance.port_p.Phi.re|// aimc.stator.zeroInductor.i0|aimc.is.1.|aimc.is.2.|loadInertia.w|powerSensor.flange_a.phi",fileNamePrefix="Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_withLosses") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_withLosses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=100000,variableFilter="time|PI.x|aimc.airGap.V_mrr.im|aimc.airGap.V_mrr.re|aimc.airGap.V_msr.im|aimc.airGap.V_msr.re|aimc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|aimc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|aimc.stator.core.Phi.im|aimc.stator.core.Phi.re|aimc.stator.strayReluctance.port_p.Phi.im|aimc.stator.strayReluctance.port_p.Phi.re|// aimc.stator.zeroInductor.i0|aimc.is.1.|aimc.is.2.|loadInertia.w|powerSensor.flange_a.phi",fileNamePrefix="Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_withLosses") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009269/0.0009268, allocations: 90.02 kB / 17.58 MB, free: 5.805 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.0009075/0.0009075, allocations: 180.5 kB / 18.48 MB, free: 5.254 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.687/1.687, allocations: 205.4 MB / 224.6 MB, free: 13.15 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.0005376/0.000538, allocations: 15.44 kB / 281.4 MB, free: 3.719 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1352/0.1357, allocations: 47.57 MB / 329 MB, free: 4.074 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_withLosses): time 0.01966/0.1555, allocations: 11.95 MB / 340.9 MB, free: 8.074 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01252/0.1681, allocations: 4.517 MB / 345.5 MB, free: 3.547 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003416/0.1716, allocations: 67.69 kB / 345.5 MB, free: 3.48 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003878/0.1755, allocations: 0.7691 MB / 346.3 MB, free: 2.707 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005402/0.1809, allocations: 1.15 MB / 347.4 MB, free: 1.551 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002617/0.1836, allocations: 0.686 MB / 348.1 MB, free: 0.8633 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.007359/0.1909, allocations: 4.331 MB / 352.5 MB, free: 12.52 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00364/0.1946, allocations: 2.258 MB / 354.7 MB, free: 10.22 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003502/0.1981, allocations: 1.393 MB / 356.1 MB, free: 8.824 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005147/0.2033, allocations: 1.844 MB / 358 MB, free: 6.973 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009547/0.2043, allocations: 224 kB / 358.2 MB, free: 6.754 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002298/0.2066, allocations: 0.5386 MB / 358.7 MB, free: 6.215 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001049/0.2077, allocations: 0.9498 MB / 359.7 MB, free: 5.262 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001595/0.2093, allocations: 0.8043 MB / 360.5 MB, free: 4.449 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007633/0.2169, allocations: 5.945 MB / 366.4 MB, free: 14.49 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.466e-06/0.217, allocations: 0 / 366.4 MB, free: 14.49 MB / 318.1 MB Notification: Performance of FrontEnd: time 3.486e-06/0.217, allocations: 0 / 366.4 MB, free: 14.49 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0002359/0.2172, allocations: 0 / 366.4 MB, free: 14.49 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: 877 * Number of variables: 877 Notification: Performance of Generate backend data structure: time 0.01232/0.2296, allocations: 4.248 MB / 370.7 MB, free: 10.16 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.164e-05/0.2296, allocations: 16.03 kB / 370.7 MB, free: 10.15 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005396/0.235, allocations: 0.8809 MB / 371.6 MB, free: 9.262 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006123/0.2412, allocations: 2.476 MB / 374 MB, free: 6.711 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002673/0.2415, allocations: 254.7 kB / 374.3 MB, free: 6.461 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001011/0.2425, allocations: 335.8 kB / 374.6 MB, free: 6.133 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009982/0.2525, allocations: 4.535 MB / 379.1 MB, free: 1.551 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.759e-05/0.2526, allocations: 7.938 kB / 379.1 MB, free: 1.543 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003303/0.253, allocations: 136 kB / 379.3 MB, free: 1.41 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001946/0.2532, allocations: 154.7 kB / 379.4 MB, free: 1.258 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.2498/0.503, allocations: 3.903 MB / 383.3 MB, free: 47.04 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02826/0.5313, allocations: 14.25 MB / 397.6 MB, free: 38.81 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00747/0.5388, allocations: 6.973 MB / 404.6 MB, free: 32.39 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00302/0.5419, allocations: 1.696 MB / 406.2 MB, free: 31.58 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007238/0.5492, allocations: 4.264 MB / 410.5 MB, free: 28.55 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.374e-05/0.5493, allocations: 55.03 kB / 410.6 MB, free: 28.5 MB / 318.1 MB Notification: Performance of pre-optimization done (n=165): time 4.038e-06/0.5493, allocations: 0 / 410.6 MB, free: 28.5 MB / 318.1 MB Notification: Performance of matching and sorting (n=185): time 0.01513/0.5644, allocations: 7.952 MB / 418.5 MB, free: 21.73 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.366e-05/0.5645, allocations: 69.41 kB / 418.6 MB, free: 21.65 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00328/0.5678, allocations: 2.612 MB / 421.2 MB, free: 19.01 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001209/0.5679, allocations: 57.7 kB / 421.3 MB, free: 18.95 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001052/0.569, allocations: 1.612 MB / 422.9 MB, free: 17.32 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000478/0.5695, allocations: 0.6253 MB / 423.5 MB, free: 16.7 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001015/0.5696, allocations: 36 kB / 423.5 MB, free: 16.67 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001557/0.5698, allocations: 385.9 kB / 423.9 MB, free: 16.29 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001349/0.5711, allocations: 0.9136 MB / 424.8 MB, free: 15.37 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00153/0.5727, allocations: 1.317 MB / 426.1 MB, free: 13.9 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001566/0.5742, allocations: 1.138 MB / 427.3 MB, free: 12.77 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.852e-06/0.5743, allocations: 8 kB / 427.3 MB, free: 12.77 MB / 318.1 MB Notification: Performance of matching and sorting (n=246) (initialization): time 0.004695/0.579, allocations: 3.073 MB / 430.4 MB, free: 9.676 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.79e-05/0.579, allocations: 8 kB / 430.4 MB, free: 9.668 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.845e-05/0.579, allocations: 12 kB / 430.4 MB, free: 9.656 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001252/0.5803, allocations: 0.5506 MB / 430.9 MB, free: 9.102 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001528/0.5818, allocations: 443.3 kB / 431.4 MB, free: 8.668 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007068/0.5889, allocations: 6.948 MB / 438.3 MB, free: 1.461 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001739/0.5907, allocations: 87.94 kB / 438.4 MB, free: 1.375 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001421/0.5908, allocations: 80.75 kB / 438.5 MB, free: 1.297 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 48 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (198): * Single equations (assignments): 194 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 6,(7,75.5%) 34} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002133/0.593, allocations: 1.162 MB / 439.6 MB, free: 128 kB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00049/0.5935, allocations: 257 kB / 439.9 MB, free: 15.87 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005366/0.5988, allocations: 2.899 MB / 442.8 MB, free: 12.95 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.614e-05/0.5989, allocations: 20 kB / 442.8 MB, free: 12.93 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.127e-05/0.5989, allocations: 14.89 kB / 442.8 MB, free: 12.91 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.668e-05/0.5989, allocations: 7.969 kB / 442.8 MB, free: 12.91 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01084/0.6098, allocations: 6.357 MB / 449.2 MB, free: 6.496 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.857e-06/0.6098, allocations: 0 / 449.2 MB, free: 6.496 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001258/0.6111, allocations: 287.7 kB / 449.5 MB, free: 6.215 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001569/0.6127, allocations: 0.6148 MB / 450.1 MB, free: 5.59 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001232/0.6128, allocations: 39.98 kB / 450.1 MB, free: 5.551 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01218/0.625, allocations: 10.49 MB / 460.6 MB, free: 10.54 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.97e-06/0.6251, allocations: 8.016 kB / 460.6 MB, free: 10.54 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007954/0.633, allocations: 4.165 MB / 464.8 MB, free: 6.336 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0017/0.6348, allocations: 0.5408 MB / 465.3 MB, free: 5.773 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003/0.6351, allocations: 47.95 kB / 465.4 MB, free: 5.727 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001032/0.6361, allocations: 92.55 kB / 465.5 MB, free: 5.637 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003659/0.6365, allocations: 137.7 kB / 465.6 MB, free: 5.5 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001771/0.6367, allocations: 55.97 kB / 465.6 MB, free: 5.445 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.003018/0.6397, allocations: 1.823 MB / 467.5 MB, free: 3.609 MB / 350.1 MB Notification: Performance of sort global known variables: time 4.81e-07/0.6397, allocations: 0 / 467.5 MB, free: 3.609 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.002731/0.6425, allocations: 0.6933 MB / 468.2 MB, free: 2.922 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 8 (aimc.inertiaRotor.w,aimc.stator.zeroInductor.i0,aimc.stator.core.Phi.re,aimc.stator.core.Phi.im,aimc.stator.strayReluctance.Phi.re,aimc.stator.strayReluctance.Phi.im,loadInertia.phi,PI.x) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (126): * Single equations (assignments): 120 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(2,100.0%) 12,(1,100.0%) 6,(1,100.0%) 12,(2,100.0%) 25} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0012/0.6437, allocations: 444.7 kB / 468.6 MB, free: 2.504 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.005609/0.6493, allocations: 2.847 MB / 471.4 MB, free: 15.63 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.098e-06/0.6493, allocations: 0 / 471.4 MB, free: 15.63 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003304/0.6526, allocations: 1.947 MB / 473.4 MB, free: 13.64 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003085/0.6557, allocations: 0.5587 MB / 474 MB, free: 13.07 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01403/0.6698, allocations: 8.391 MB / 482.3 MB, free: 4.652 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002668/0.6725, allocations: 2.57 MB / 484.9 MB, free: 2.055 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001042/0.6736, allocations: 179.4 kB / 485.1 MB, free: 1.879 MB / 366.1 MB Notification: Performance of SimCode: time 1.383e-06/0.6736, allocations: 4 kB / 485.1 MB, free: 1.875 MB / 366.1 MB Notification: Performance of Templates: time 0.3217/0.9953, allocations: 99.69 MB / 0.5711 GB, free: 131.3 MB / 430.1 MB make -j1 -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_withLosses.makefile make -j1 -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_withLosses.makefile clang++ NOTFOUND -Winvalid-pch -O0 -g -DNDEBUG -fPIC -std=c++11 -DBOOST_ALL_DYN_LINK -DUSE_DGESV -DUSE_LOGGER -DOMC_BUILD -DUSE_THREAD -DSUNDIALS_MAJOR_VERSION=5 -DSUNDIALS_MINOR_VERSION=4 -DPMC_USE_SUNDIALS -I"." -I"/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/cpp/" -I. -I"." -I"." -I"/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/include/omc/c/sundials" -DMEASURETIME_PROFILEBLOCKS -DUSE_LOGGER -c -o OMCppModelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_withLossesCalcHelperMain.o OMCppModelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_withLossesCalcHelperMain.cpp clang: error: no such file or directory: 'NOTFOUND' make: *** [: OMCppModelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_withLossesCalcHelperMain.o] Error 1