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.001544/0.001544, allocations: 101.5 kB / 17.8 MB, free: 5.676 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.002045/0.002045, allocations: 194 kB / 18.72 MB, free: 4.762 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.047/2.047, allocations: 205.1 MB / 224.6 MB, free: 12.41 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.002089/0.002089, allocations: 51.92 kB / 280.6 MB, free: 3.586 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1603/0.1624, allocations: 46.64 MB / 327.3 MB, free: 4.883 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_withLosses): time 0.02232/0.1849, allocations: 13.41 MB / 340.7 MB, free: 7.402 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01542/0.2003, allocations: 4.838 MB / 345.5 MB, free: 2.551 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005446/0.2059, allocations: 67.69 kB / 345.6 MB, free: 2.484 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005168/0.2111, allocations: 0.8979 MB / 346.5 MB, free: 1.582 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007051/0.2182, allocations: 1.263 MB / 347.7 MB, free: 320 kB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003898/0.2221, allocations: 0.8968 MB / 348.6 MB, free: 15.41 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.009736/0.2319, allocations: 4.636 MB / 353.3 MB, free: 10.76 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005468/0.2374, allocations: 2.73 MB / 356 MB, free: 7.961 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004664/0.2421, allocations: 1.607 MB / 357.6 MB, free: 6.348 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005448/0.2476, allocations: 2.148 MB / 359.8 MB, free: 4.191 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001732/0.2494, allocations: 312 kB / 360.1 MB, free: 3.887 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003631/0.2531, allocations: 0.6869 MB / 360.7 MB, free: 3.199 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001705/0.2548, allocations: 1.078 MB / 361.8 MB, free: 2.117 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004906/0.2597, allocations: 2.103 MB / 363.9 MB, free: 4 kB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008849/0.2686, allocations: 6.123 MB / 370 MB, free: 9.867 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.246e-05/0.2687, allocations: 0 / 370 MB, free: 9.867 MB / 318.1 MB Notification: Performance of FrontEnd: time 4.018e-06/0.2687, allocations: 4 kB / 370.1 MB, free: 9.863 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0002958/0.269, allocations: 0 / 370.1 MB, free: 9.863 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.01836/0.2874, allocations: 4.961 MB / 375 MB, free: 4.824 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.557e-05/0.2875, allocations: 8.031 kB / 375 MB, free: 4.816 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004831/0.2923, allocations: 0.8858 MB / 375.9 MB, free: 3.926 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005971/0.2983, allocations: 2.557 MB / 378.5 MB, free: 1.293 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002528/0.2986, allocations: 254.6 kB / 378.7 MB, free: 1.043 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006728/0.2993, allocations: 335.8 kB / 379 MB, free: 0.7148 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.3552/0.6545, allocations: 4.543 MB / 383.6 MB, free: 47.15 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.506e-05/0.6547, allocations: 2.703 kB / 383.6 MB, free: 47.15 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003877/0.6551, allocations: 132.8 kB / 383.7 MB, free: 47.05 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003317/0.6554, allocations: 157.8 kB / 383.9 MB, free: 47.04 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01353/0.669, allocations: 3.909 MB / 387.8 MB, free: 45.53 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03342/0.7024, allocations: 14.19 MB / 402 MB, free: 36.5 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008652/0.7112, allocations: 6.961 MB / 408.9 MB, free: 30.08 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003714/0.715, allocations: 1.69 MB / 410.6 MB, free: 29.26 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0101/0.7251, allocations: 4.254 MB / 414.9 MB, free: 25.2 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.374e-05/0.7252, allocations: 51.88 kB / 414.9 MB, free: 25.14 MB / 318.1 MB Notification: Performance of pre-optimization done (n=165): time 5.971e-06/0.7253, allocations: 0 / 414.9 MB, free: 25.14 MB / 318.1 MB Notification: Performance of matching and sorting (n=185): time 0.01894/0.7442, allocations: 7.826 MB / 422.8 MB, free: 17.19 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.715e-05/0.7444, allocations: 69.41 kB / 422.8 MB, free: 17.11 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006267/0.7507, allocations: 2.627 MB / 425.4 MB, free: 14.46 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003103/0.751, allocations: 53.7 kB / 425.5 MB, free: 14.4 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001421/0.7524, allocations: 1.618 MB / 427.1 MB, free: 12.77 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007585/0.7532, allocations: 0.6234 MB / 427.7 MB, free: 12.15 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007423/0.754, allocations: 331.3 kB / 428.1 MB, free: 11.82 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001246/0.7541, allocations: 312.9 kB / 428.4 MB, free: 11.52 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001658/0.7558, allocations: 0.9097 MB / 429.3 MB, free: 10.61 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001752/0.7575, allocations: 1.302 MB / 430.6 MB, free: 9.152 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003515/0.7611, allocations: 2.353 MB / 432.9 MB, free: 6.656 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.15e-05/0.7611, allocations: 8 kB / 432.9 MB, free: 6.648 MB / 318.1 MB Notification: Performance of matching and sorting (n=246) (initialization): time 0.006178/0.7673, allocations: 3.061 MB / 436 MB, free: 3.57 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.986e-05/0.7674, allocations: 12.25 kB / 436 MB, free: 3.559 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.903e-05/0.7674, allocations: 12 kB / 436 MB, free: 3.547 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001668/0.7691, allocations: 0.5594 MB / 436.6 MB, free: 2.98 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001769/0.7709, allocations: 431.4 kB / 437 MB, free: 2.559 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01074/0.7817, allocations: 6.944 MB / 444 MB, free: 11.36 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002337/0.784, allocations: 87.94 kB / 444 MB, free: 11.27 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003386/0.7844, allocations: 75.98 kB / 444.1 MB, free: 11.2 MB / 334.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 (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,6,100.0%), (8,33,56.2%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.003398/0.7878, allocations: 1.165 MB / 445.3 MB, free: 10.02 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001112/0.7889, allocations: 248.9 kB / 445.5 MB, free: 9.773 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007334/0.7963, allocations: 2.893 MB / 448.4 MB, free: 6.859 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.825e-05/0.7964, allocations: 20 kB / 448.4 MB, free: 6.84 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.412e-05/0.7964, allocations: 8 kB / 448.4 MB, free: 6.832 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.6e-05/0.7965, allocations: 11.95 kB / 448.5 MB, free: 6.82 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01684/0.8133, allocations: 6.332 MB / 454.8 MB, free: 444 kB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.818e-05/0.8134, allocations: 4.125 kB / 454.8 MB, free: 440 kB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001559/0.815, allocations: 275.6 kB / 455.1 MB, free: 164 kB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002143/0.8172, allocations: 0.6293 MB / 455.7 MB, free: 15.53 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002028/0.8174, allocations: 39.98 kB / 455.7 MB, free: 15.49 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01705/0.8345, allocations: 10.49 MB / 466.2 MB, free: 4.484 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.021e-06/0.8346, allocations: 0 / 466.2 MB, free: 4.484 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01206/0.8466, allocations: 4.16 MB / 470.4 MB, free: 296 kB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002515/0.8492, allocations: 0.5371 MB / 470.9 MB, free: 15.73 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001287/0.8506, allocations: 40 kB / 471 MB, free: 15.69 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002233/0.8528, allocations: 79.92 kB / 471 MB, free: 15.61 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005886/0.8534, allocations: 141.8 kB / 471.2 MB, free: 15.47 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002088/0.8537, allocations: 51.97 kB / 471.2 MB, free: 15.42 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.005665/0.8593, allocations: 1.842 MB / 473.1 MB, free: 13.56 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.8594, allocations: 0 / 473.1 MB, free: 13.56 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.005516/0.8649, allocations: 0.7002 MB / 473.8 MB, free: 12.87 MB / 366.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 (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(2,12,100.0%), (1,6,100.0%), (1,12,100.0%), (2,25,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.002031/0.867, allocations: 438.8 kB / 474.2 MB, free: 12.46 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.007614/0.8746, allocations: 2.837 MB / 477 MB, free: 9.602 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 9.728e-06/0.8746, allocations: 1.812 kB / 477 MB, free: 9.602 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003951/0.8786, allocations: 1.938 MB / 479 MB, free: 7.613 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004638/0.8833, allocations: 0.5502 MB / 479.5 MB, free: 7.062 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02192/0.9052, allocations: 8.638 MB / 488.2 MB, free: 14.4 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004908/0.9102, allocations: 2.57 MB / 490.7 MB, free: 11.8 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001414/0.9117, allocations: 183.4 kB / 490.9 MB, free: 11.62 MB / 382.1 MB Notification: Performance of SimCode: time 2.254e-06/0.9117, allocations: 0 / 490.9 MB, free: 11.62 MB / 382.1 MB Notification: Performance of Templates: time 0.4422/1.354, allocations: 100.1 MB / 0.5772 GB, free: 123.5 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++ -std=c++14 NOTFOUND -Winvalid-pch -O2 -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/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