Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Transformer.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: translateModel(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Transformer,tolerance=1e-06,outputFormat="mat",numberOfIntervals=50000,variableFilter="time|imc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|imc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|imc.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|imc.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|imc.stator.zeroInductor.i0|imcQS.rotorCage.port_p.reference.gamma|loadInertia.phi|loadInertia.w|loadInertiaQS.phi|loadInertiaQS.w|transformer.l2sigma.inductor.1..i|transformer.l2sigma.inductor.3..i",fileNamePrefix="Modelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Transformer") translateModel(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Transformer,tolerance=1e-06,outputFormat="mat",numberOfIntervals=50000,variableFilter="time|imc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|imc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|imc.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|imc.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|imc.stator.zeroInductor.i0|imcQS.rotorCage.port_p.reference.gamma|loadInertia.phi|loadInertia.w|loadInertiaQS.phi|loadInertiaQS.w|transformer.l2sigma.inductor.1..i|transformer.l2sigma.inductor.3..i",fileNamePrefix="Modelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Transformer") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009019/0.0009019, allocations: 200 kB / 18.06 MB, free: 3.648 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.217/1.217, allocations: 226.5 MB / 245.3 MB, free: 6.383 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007566/0.0007566, allocations: 96.58 kB / 297.4 MB, free: 6.652 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002291/0.0002292, allocations: 8 kB / 357.4 MB, free: 10.68 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1868/0.1871, allocations: 51.28 MB / 408.7 MB, free: 27.7 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3625/0.5496, allocations: 168.5 MB / 0.5637 GB, free: 28.93 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002694/0.5499, allocations: 109.3 kB / 0.5638 GB, free: 28.87 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.014/3.564, allocations: 0.8992 GB / 1.463 GB, free: 33.49 MB / 0.5261 GB Notification: Performance of FrontEnd: time 2.234e-06/3.564, allocations: 5.328 kB / 1.463 GB, free: 33.49 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 0.00286/3.567, allocations: 474.9 kB / 1.463 GB, free: 33.44 MB / 0.5261 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 5818 * Number of variables: 5818 Notification: Performance of Generate backend data structure: time 0.08667/3.653, allocations: 20.49 MB / 1.483 GB, free: 27.11 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 4.506e-05/3.654, allocations: 7.594 kB / 1.483 GB, free: 27.11 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05183/3.705, allocations: 9.765 MB / 1.493 GB, free: 25.93 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0457/3.751, allocations: 15.77 MB / 1.508 GB, free: 23.94 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.002981/3.754, allocations: 1.516 MB / 1.51 GB, free: 23.89 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.01073/3.765, allocations: 1.995 MB / 1.512 GB, free: 23.88 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.09891/3.864, allocations: 34.39 MB / 1.545 GB, free: 21.46 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.001239/3.865, allocations: 40.64 kB / 1.545 GB, free: 21.45 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.008967/3.874, allocations: 0.8583 MB / 1.546 GB, free: 21.45 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001864/3.876, allocations: 1.479 MB / 1.548 GB, free: 21.4 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.07584/3.952, allocations: 30.15 MB / 1.577 GB, free: 11.06 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.6287/4.581, allocations: 109 MB / 1.684 GB, free: 25.21 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.04158/4.622, allocations: 50.7 MB / 1.733 GB, free: 23.16 MB / 0.573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.01497/4.637, allocations: 9.742 MB / 1.743 GB, free: 22.98 MB / 0.573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.04216/4.679, allocations: 22.89 MB / 1.765 GB, free: 20.89 MB / 0.573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.793e-05/4.68, allocations: 131.6 kB / 1.765 GB, free: 20.78 MB / 0.573 GB Notification: Performance of pre-optimization done (n=894): time 9.318e-06/4.68, allocations: 0 / 1.765 GB, free: 20.78 MB / 0.573 GB Notification: Performance of matching and sorting (n=906): time 0.07278/4.752, allocations: 39.46 MB / 1.804 GB, free: 2.059 MB / 0.573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001/4.753, allocations: 177.9 kB / 1.804 GB, free: 1.949 MB / 0.573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01562/4.768, allocations: 8.396 MB / 1.812 GB, free: 15.23 MB / 0.5886 GB Notification: Performance of collectPreVariables (initialization): time 0.002058/4.77, allocations: 173.7 kB / 1.812 GB, free: 15.05 MB / 0.5886 GB Notification: Performance of collectInitialEqns (initialization): time 0.005748/4.776, allocations: 8.668 MB / 1.821 GB, free: 7.387 MB / 0.5886 GB Notification: Performance of collectInitialBindings (initialization): time 0.003729/4.78, allocations: 3.046 MB / 1.824 GB, free: 4.645 MB / 0.5886 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008855/4.781, allocations: 232 kB / 1.824 GB, free: 4.418 MB / 0.5886 GB Notification: Performance of setup shared object (initialization): time 0.0006011/4.781, allocations: 0.7753 MB / 1.825 GB, free: 3.773 MB / 0.5886 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.025/4.806, allocations: 6.713 MB / 1.831 GB, free: 0 / 0.5886 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.4348/5.241, allocations: 9.812 MB / 1.841 GB, free: 89.77 MB / 0.5886 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02278/5.264, allocations: 17.01 MB / 1.857 GB, free: 85.49 MB / 0.5886 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002583/5.264, allocations: 31.06 kB / 1.857 GB, free: 85.49 MB / 0.5886 GB Notification: Performance of matching and sorting (n=1470) (initialization): time 0.03443/5.299, allocations: 20.08 MB / 1.877 GB, free: 84.84 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001074/5.299, allocations: 57.78 kB / 1.877 GB, free: 84.84 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002069/5.299, allocations: 112.8 kB / 1.877 GB, free: 84.84 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.009357/5.308, allocations: 3.823 MB / 1.881 GB, free: 84.67 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008703/5.317, allocations: 2.376 MB / 1.883 GB, free: 84.67 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04206/5.359, allocations: 37.92 MB / 1.92 GB, free: 76.49 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008508/5.368, allocations: 0.602 MB / 1.921 GB, free: 76.49 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001913/5.37, allocations: 0.5074 MB / 1.921 GB, free: 76.49 MB / 0.5886 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 517 * Number of states: 0 () * Number of discrete variables: 12 (booleanStep1[1].y,booleanStep1[2].y,booleanStep1[3].y,booleanStep2[1].y,booleanStep2[2].y,booleanStep2[3].y,booleanStep1QS[1].y,booleanStep1QS[2].y,booleanStep1QS[3].y,booleanStep2QS[1].y,booleanStep2QS[2].y,booleanStep2QS[3].y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1216): * Single equations (assignments): 1209 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 6 {(1,100.0%) 1,(1,100.0%) 8,(3,88.9%) 25,(1,100.0%) 13,(1,100.0%) 1,(28,26.3%) 176} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.01374/5.383, allocations: 7.919 MB / 1.929 GB, free: 76.34 MB / 0.5886 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001887/5.385, allocations: 0.9043 MB / 1.93 GB, free: 76.34 MB / 0.5886 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02481/5.41, allocations: 16.95 MB / 1.946 GB, free: 69.55 MB / 0.5886 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.35e-05/5.41, allocations: 91.27 kB / 1.947 GB, free: 69.55 MB / 0.5886 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.926e-05/5.41, allocations: 42.72 kB / 1.947 GB, free: 69.55 MB / 0.5886 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.428e-05/5.41, allocations: 57.53 kB / 1.947 GB, free: 69.55 MB / 0.5886 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.06181/5.472, allocations: 35.87 MB / 1.982 GB, free: 55.32 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.203e-05/5.472, allocations: 11.44 kB / 1.982 GB, free: 55.32 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005752/5.478, allocations: 1.407 MB / 1.983 GB, free: 55.27 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.009351/5.487, allocations: 3.85 MB / 1.987 GB, free: 52.98 MB / 0.5886 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001289/5.489, allocations: 204 kB / 1.987 GB, free: 52.79 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04105/5.53, allocations: 39.69 MB / 2.026 GB, free: 16.89 MB / 0.5886 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.881e-06/5.53, allocations: 16 kB / 2.026 GB, free: 16.88 MB / 0.5886 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.3624/5.892, allocations: 24.66 MB / 2.05 GB, free: 77.59 MB / 0.5886 GB Notification: Performance of postOpt removeConstants (simulation): time 0.007441/5.9, allocations: 2.254 MB / 2.052 GB, free: 77.49 MB / 0.5886 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002512/5.902, allocations: 176.4 kB / 2.052 GB, free: 77.49 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005169/5.907, allocations: 0.5072 MB / 2.053 GB, free: 77.49 MB / 0.5886 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001772/5.909, allocations: 0.7009 MB / 2.053 GB, free: 77.48 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006386/5.91, allocations: 259.3 kB / 2.054 GB, free: 77.48 MB / 0.5886 GB Notification: Performance of sorting global known variables: time 0.01022/5.92, allocations: 5.635 MB / 2.059 GB, free: 77.23 MB / 0.5886 GB Notification: Performance of sort global known variables: time 1.6e-07/5.92, allocations: 3 kB / 2.059 GB, free: 77.23 MB / 0.5886 GB Notification: Performance of remove unused functions: time 0.01754/5.938, allocations: 3.857 MB / 2.063 GB, free: 77.23 MB / 0.5886 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 27 * Number of states: 12 (imcQS.rotorCage.port_p.reference.gamma,loadInertiaQS.w,quadraticLoadTorqueQS.phi,imc.stator.core.Phi.re,imc.stator.core.Phi.im,imc.stator.zeroInductor.i0,imc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.re,imc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.im,transformer.l1sigma.inductor[2].i,transformer.l1sigma.inductor[3].i,loadInertia.w,quadraticLoadTorque.phi) * Number of discrete variables: 12 (booleanStep1QS[1].y,booleanStep1QS[2].y,booleanStep1QS[3].y,booleanStep2QS[1].y,booleanStep2QS[2].y,booleanStep2QS[3].y,booleanStep1[1].y,booleanStep1[2].y,booleanStep1[3].y,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 (703): * Single equations (assignments): 695 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 8 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 8 {(1,100.0%) 1,(28,26.3%) 176,(1,100.0%) 8,(2,100.0%) 26,(1,100.0%) 1,(1,100.0%) 8,(1,100.0%) 13,(2,100.0%) 12} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002642/5.94, allocations: 0.7635 MB / 2.064 GB, free: 77.13 MB / 0.5886 GB Notification: Performance of simCode: created initialization part: time 0.02667/5.967, allocations: 17.03 MB / 2.08 GB, free: 75.92 MB / 0.5886 GB Notification: Performance of simCode: created event and clocks part: time 1.441e-05/5.967, allocations: 5.312 kB / 2.08 GB, free: 75.92 MB / 0.5886 GB Notification: Performance of simCode: created simulation system equations: time 0.01654/5.984, allocations: 9.786 MB / 2.09 GB, free: 74.69 MB / 0.5886 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.02434/6.008, allocations: 2.452 MB / 2.092 GB, free: 74.65 MB / 0.5886 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.09475/6.103, allocations: 45.18 MB / 2.136 GB, free: 57.06 MB / 0.5886 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02857/6.131, allocations: 12.81 MB / 2.149 GB, free: 55.77 MB / 0.5886 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005091/6.137, allocations: 0.7427 MB / 2.15 GB, free: 55.77 MB / 0.5886 GB Notification: Performance of SimCode: time 8.61e-07/6.137, allocations: 4 kB / 2.15 GB, free: 55.77 MB / 0.5886 GB Notification: Performance of Templates: time 3.261/9.398, allocations: 1.129 GB / 3.278 GB, free: 112.5 MB / 0.6511 GB make -j1 -f Modelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Transformer.makefile make -j1 -f Modelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Transformer.makefile clang++ -std=c++14 -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_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_TransformerCalcHelperMain.o OMCppModelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_TransformerCalcHelperMain.cpp In file included from OMCppModelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_TransformerCalcHelperMain.cpp:15: ./OMCppModelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_TransformerTypes.h:155:9: error: unknown type name '_omcQComplexOutput_24iSensorQS_24currentSensor_24iType' typedef _omcQComplexOutput_24iSensorQS_24currentSensor_24iType _omcQComplexOutput_24iSensorQS_24currentSensor_24iRetType /* functionHeaderRegularFunction1 */; ^ In file included from OMCppModelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_TransformerCalcHelperMain.cpp:16: ./OMCppModelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_TransformerFunctions.h:17:101: error: unknown type name '_omcQComplexOutput_24iSensorQS_24currentSensor_24iType' void /*RecordTypetest*/ _omcQComplexOutput_24iSensorQS_24currentSensor_24i(double re_, double im_,_omcQComplexOutput_24iSensorQS_24currentSensor_24iType &output ); ^ In file included from OMCppModelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_TransformerCalcHelperMain.cpp:28: ./OMCppModelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_TransformerFunctions.cpp:58:92: error: unknown type name '_omcQComplexOutput_24iSensorQS_24currentSensor_24iType' void Functions::_omcQComplexOutput_24iSensorQS_24currentSensor_24i(double re_, double im_, _omcQComplexOutput_24iSensorQS_24currentSensor_24iType& output) ^ 3 errors generated. make: *** [: OMCppModelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_TransformerCalcHelperMain.o] Error 1