Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize.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_Initialize,tolerance=1e-06,outputFormat="mat",numberOfIntervals=30000,variableFilter="time|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.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|aimc.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|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.phi|loadInertia.w",fileNamePrefix="Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize,tolerance=1e-06,outputFormat="mat",numberOfIntervals=30000,variableFilter="time|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.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|aimc.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|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.phi|loadInertia.w",fileNamePrefix="Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001097/0.001097, allocations: 96.64 kB / 17.96 MB, free: 5.77 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.001528/0.001529, allocations: 179.2 kB / 18.86 MB, free: 4.906 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.286/2.286, allocations: 205.4 MB / 225 MB, free: 13.08 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.0005942/0.0005946, allocations: 16 kB / 282 MB, free: 3.426 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.164/0.1646, allocations: 47.59 MB / 329.6 MB, free: 3.77 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize): time 0.01899/0.1836, allocations: 12.05 MB / 341.7 MB, free: 7.66 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.013/0.1967, allocations: 4.199 MB / 345.9 MB, free: 3.445 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003927/0.2007, allocations: 63.75 kB / 345.9 MB, free: 3.383 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004636/0.2053, allocations: 0.8434 MB / 346.8 MB, free: 2.535 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007647/0.213, allocations: 1.17 MB / 347.9 MB, free: 1.359 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003676/0.2167, allocations: 0.7759 MB / 348.7 MB, free: 0.582 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.01022/0.227, allocations: 4.339 MB / 353.1 MB, free: 12.22 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005187/0.2322, allocations: 2.63 MB / 355.7 MB, free: 9.523 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003709/0.236, allocations: 1.299 MB / 357 MB, free: 8.219 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004628/0.2406, allocations: 1.719 MB / 358.7 MB, free: 6.492 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001069/0.2417, allocations: 208 kB / 358.9 MB, free: 6.289 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002302/0.2441, allocations: 415.7 kB / 359.3 MB, free: 5.883 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001116/0.2452, allocations: 0.7821 MB / 360.1 MB, free: 5.098 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003879/0.2491, allocations: 1.762 MB / 361.9 MB, free: 3.32 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00955/0.2587, allocations: 5.528 MB / 367.4 MB, free: 13.78 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.937e-06/0.2587, allocations: 3.938 kB / 367.4 MB, free: 13.77 MB / 318.1 MB Notification: Performance of FrontEnd: time 3.817e-06/0.2587, allocations: 0 / 367.4 MB, free: 13.77 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0003011/0.259, allocations: 0 / 367.4 MB, free: 13.77 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: 819 * Number of variables: 819 Notification: Performance of Generate backend data structure: time 0.01571/0.2748, allocations: 3.72 MB / 371.1 MB, free: 9.98 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 9.786e-05/0.2749, allocations: 8.031 kB / 371.1 MB, free: 9.973 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007201/0.2821, allocations: 0.8163 MB / 371.9 MB, free: 9.152 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008813/0.291, allocations: 2.264 MB / 374.2 MB, free: 6.832 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004356/0.2914, allocations: 230.6 kB / 374.4 MB, free: 6.605 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002021/0.2935, allocations: 324 kB / 374.7 MB, free: 6.289 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01496/0.3085, allocations: 4.262 MB / 379 MB, free: 1.977 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.545e-05/0.3086, allocations: 0 / 379 MB, free: 1.977 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003703/0.309, allocations: 128 kB / 379.1 MB, free: 1.852 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002059/0.3092, allocations: 146.2 kB / 379.3 MB, free: 1.707 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.3789/0.6881, allocations: 3.666 MB / 382.9 MB, free: 32.49 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04065/0.7288, allocations: 13.57 MB / 396.5 MB, free: 27.89 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009873/0.7388, allocations: 6.879 MB / 403.4 MB, free: 21.61 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004/0.7429, allocations: 1.427 MB / 404.8 MB, free: 20.92 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01031/0.7533, allocations: 3.649 MB / 408.5 MB, free: 18.3 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.664e-05/0.7534, allocations: 49.09 kB / 408.5 MB, free: 18.25 MB / 318.1 MB Notification: Performance of pre-optimization done (n=124): time 4.719e-06/0.7534, allocations: 4 kB / 408.5 MB, free: 18.25 MB / 318.1 MB Notification: Performance of matching and sorting (n=144): time 0.01767/0.7711, allocations: 6.691 MB / 415.2 MB, free: 14.11 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.461e-05/0.7712, allocations: 68.44 kB / 415.3 MB, free: 14.05 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004151/0.7754, allocations: 1.857 MB / 417.1 MB, free: 12.57 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002337/0.7757, allocations: 49.7 kB / 417.2 MB, free: 12.51 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00105/0.7767, allocations: 1.417 MB / 418.6 MB, free: 11.08 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005323/0.7773, allocations: 495.1 kB / 419.1 MB, free: 10.6 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002928/0.7776, allocations: 145.6 kB / 419.2 MB, free: 10.45 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 6.525e-05/0.7777, allocations: 305.1 kB / 419.5 MB, free: 10.15 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00132/0.779, allocations: 0.7652 MB / 420.3 MB, free: 9.391 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00146/0.7805, allocations: 1.239 MB / 421.5 MB, free: 7.965 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0028/0.7833, allocations: 2.113 MB / 423.6 MB, free: 5.719 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.446e-05/0.7833, allocations: 4 kB / 423.6 MB, free: 5.715 MB / 318.1 MB Notification: Performance of matching and sorting (n=218) (initialization): time 0.004682/0.788, allocations: 2.683 MB / 426.3 MB, free: 3.117 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.038e-05/0.7881, allocations: 12 kB / 426.3 MB, free: 3.105 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.645e-05/0.7881, allocations: 12 kB / 426.3 MB, free: 3.094 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00142/0.7895, allocations: 0.4977 MB / 426.8 MB, free: 2.59 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001419/0.791, allocations: 390.3 kB / 427.2 MB, free: 2.23 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009604/0.8006, allocations: 6.409 MB / 433.6 MB, free: 11.57 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002204/0.8028, allocations: 80.02 kB / 433.7 MB, free: 11.5 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003967/0.8033, allocations: 72 kB / 433.8 MB, free: 11.43 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 62 * 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 (180): * Single equations (assignments): 178 * Array equations: 0 * 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,1,100.0%), (7,31,61.2%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002959/0.8062, allocations: 1.047 MB / 434.8 MB, free: 10.39 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007938/0.807, allocations: 193.7 kB / 435 MB, free: 10.2 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00581/0.8129, allocations: 2.526 MB / 437.5 MB, free: 7.633 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.542e-05/0.8129, allocations: 12 kB / 437.6 MB, free: 7.621 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.317e-05/0.813, allocations: 9.219 kB / 437.6 MB, free: 7.613 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.116e-05/0.813, allocations: 3.984 kB / 437.6 MB, free: 7.609 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01426/0.8273, allocations: 5.545 MB / 443.1 MB, free: 1.996 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.281e-05/0.8274, allocations: 8.031 kB / 443.1 MB, free: 1.988 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001081/0.8284, allocations: 222.7 kB / 443.3 MB, free: 1.781 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001525/0.83, allocations: 0.502 MB / 443.8 MB, free: 1.27 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001554/0.8302, allocations: 28 kB / 443.9 MB, free: 1.242 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01443/0.8446, allocations: 10.47 MB / 454.3 MB, free: 6.184 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.951e-06/0.8447, allocations: 7.938 kB / 454.4 MB, free: 6.176 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008235/0.853, allocations: 3.588 MB / 457.9 MB, free: 2.535 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001747/0.8547, allocations: 454.6 kB / 458.4 MB, free: 2.07 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007456/0.8555, allocations: 43.98 kB / 458.4 MB, free: 2.027 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001551/0.8571, allocations: 71.89 kB / 458.5 MB, free: 1.957 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004006/0.8575, allocations: 119.6 kB / 458.6 MB, free: 1.84 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001288/0.8576, allocations: 36 kB / 458.6 MB, free: 1.805 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.003506/0.8612, allocations: 1.289 MB / 459.9 MB, free: 0.5234 MB / 350.1 MB Notification: Performance of sort global known variables: time 3.1e-07/0.8612, allocations: 0 / 459.9 MB, free: 0.5234 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.003615/0.8648, allocations: 0.5821 MB / 460.5 MB, free: 15.94 MB / 366.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.stator.strayReluctance.Phi.re,aimc.stator.strayReluctance.Phi.im,loadInertia.phi) * 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 (102): * Single equations (assignments): 97 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 5 systems {(2,12,100.0%), (1,1,100.0%), (1,12,100.0%), (1,8,100.0%), (1,8,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0004821/0.8653, allocations: 167.2 kB / 460.7 MB, free: 15.79 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.005264/0.8706, allocations: 2.406 MB / 463.1 MB, free: 13.4 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 5.42e-06/0.8706, allocations: 0 / 463.1 MB, free: 13.4 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002983/0.8736, allocations: 1.727 MB / 464.8 MB, free: 11.63 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00397/0.8776, allocations: 0.4943 MB / 465.3 MB, free: 11.13 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01534/0.8929, allocations: 7.431 MB / 472.7 MB, free: 3.668 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003336/0.8963, allocations: 2.312 MB / 475.1 MB, free: 1.328 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007959/0.8971, allocations: 139.4 kB / 475.2 MB, free: 1.195 MB / 366.1 MB Notification: Performance of SimCode: time 1.192e-06/0.8972, allocations: 4 kB / 475.2 MB, free: 1.191 MB / 366.1 MB Notification: Performance of Templates: time 0.37/1.267, allocations: 96.87 MB / 0.5587 GB, free: 132 MB / 430.1 MB make -j1 -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize.makefile make -j1 -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize.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_InitializeCalcHelperMain.o OMCppModelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_InitializeCalcHelperMain.cpp clang: error: no such file or directory: 'NOTFOUND' make: *** [: OMCppModelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_InitializeCalcHelperMain.o] Error 1