Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.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.SynchronousMachines.SMR_CurrentSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|inertiaLoad.phi|inertiaLoad.w|inertiaLoadQS.phi|inertiaLoadQS.w|dqToThreePhase.y.1.|dqToThreePhase.y.2.|dqToThreePhase.y.3.",fileNamePrefix="Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource") translateModel(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|inertiaLoad.phi|inertiaLoad.w|inertiaLoadQS.phi|inertiaLoadQS.w|dqToThreePhase.y.1.|dqToThreePhase.y.2.|dqToThreePhase.y.3.",fileNamePrefix="Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001474/0.001474, allocations: 200 kB / 18.1 MB, free: 3.594 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.378/1.378, allocations: 226.5 MB / 245.4 MB, free: 8.09 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007966/0.0007968, allocations: 103.4 kB / 297.5 MB, free: 6.871 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002305/0.0002306, allocations: 4 kB / 358.1 MB, free: 10.24 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2421/0.2423, allocations: 51.29 MB / 409.4 MB, free: 27.62 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3996/0.642, allocations: 158.4 MB / 0.5545 GB, free: 36.53 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002678/0.6423, allocations: 106.8 kB / 0.5546 GB, free: 36.51 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.368/2.01, allocations: 391.1 MB / 0.9365 GB, free: 45.39 MB / 474.7 MB Notification: Performance of FrontEnd: time 4.449e-06/2.01, allocations: 4 kB / 0.9366 GB, free: 45.39 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.001023/2.011, allocations: 280.5 kB / 0.9368 GB, free: 45.35 MB / 474.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3329 * Number of variables: 3329 Notification: Performance of Generate backend data structure: time 0.03802/2.049, allocations: 11.3 MB / 0.9479 GB, free: 41.54 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.391e-05/2.049, allocations: 7.781 kB / 0.9479 GB, free: 41.54 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02481/2.074, allocations: 4.429 MB / 0.9522 GB, free: 40.87 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02491/2.099, allocations: 8.754 MB / 0.9607 GB, free: 39.3 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001225/2.1, allocations: 0.873 MB / 0.9616 GB, free: 39.28 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005861/2.106, allocations: 1.155 MB / 0.9627 GB, free: 39.27 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05332/2.16, allocations: 18.52 MB / 0.9808 GB, free: 32.6 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0007548/2.16, allocations: 29.06 kB / 0.9808 GB, free: 32.58 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004978/2.165, allocations: 0.495 MB / 0.9813 GB, free: 32.21 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001044/2.167, allocations: 0.8118 MB / 0.9821 GB, free: 32.03 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03664/2.203, allocations: 15.53 MB / 0.9973 GB, free: 19.42 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4806/2.684, allocations: 59.85 MB / 1.056 GB, free: 34.64 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02359/2.707, allocations: 33.11 MB / 1.088 GB, free: 38.61 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005327/2.713, allocations: 3.697 MB / 1.092 GB, free: 38.55 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01461/2.727, allocations: 8.737 MB / 1.1 GB, free: 37.75 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.178e-05/2.728, allocations: 69.22 kB / 1.1 GB, free: 37.7 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=351): time 5.79e-06/2.728, allocations: 0 / 1.1 GB, free: 37.7 MB / 0.5105 GB Notification: Performance of matching and sorting (n=391): time 0.03424/2.762, allocations: 17.52 MB / 1.117 GB, free: 35.3 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.042e-05/2.762, allocations: 94.94 kB / 1.117 GB, free: 35.23 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00708/2.769, allocations: 4.863 MB / 1.122 GB, free: 34.8 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0006513/2.77, allocations: 87.89 kB / 1.122 GB, free: 34.77 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.00259/2.772, allocations: 5.465 MB / 1.128 GB, free: 31.82 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.001199/2.773, allocations: 1.36 MB / 1.129 GB, free: 30.98 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003252/2.774, allocations: 135.6 kB / 1.129 GB, free: 30.98 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0004111/2.774, allocations: 0.5789 MB / 1.13 GB, free: 30.66 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003916/2.778, allocations: 2.842 MB / 1.132 GB, free: 30.64 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005226/2.783, allocations: 5.901 MB / 1.138 GB, free: 26.87 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01074/2.794, allocations: 9.466 MB / 1.147 GB, free: 22.89 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001327/2.794, allocations: 28.62 kB / 1.147 GB, free: 22.89 MB / 0.5105 GB Notification: Performance of matching and sorting (n=873) (initialization): time 0.01892/2.813, allocations: 9.767 MB / 1.157 GB, free: 22.33 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001039/2.813, allocations: 49.28 kB / 1.157 GB, free: 22.33 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002065/2.814, allocations: 110.8 kB / 1.157 GB, free: 22.33 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002392/2.816, allocations: 0.9294 MB / 1.158 GB, free: 22.27 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006147/2.822, allocations: 1.592 MB / 1.16 GB, free: 22.27 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01109/2.833, allocations: 9.416 MB / 1.169 GB, free: 18.24 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005949/2.839, allocations: 416.5 kB / 1.169 GB, free: 18.2 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001118/2.84, allocations: 361.1 kB / 1.17 GB, free: 18.2 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 470 * 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 (823): * Single equations (assignments): 817 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 1,(8,59.4%) 38,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.007396/2.848, allocations: 4.255 MB / 1.174 GB, free: 16.88 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001098/2.849, allocations: 0.505 MB / 1.174 GB, free: 16.62 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009526/2.859, allocations: 6.388 MB / 1.18 GB, free: 13.97 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.713e-05/2.859, allocations: 39.56 kB / 1.18 GB, free: 13.97 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.461e-05/2.859, allocations: 10.47 kB / 1.18 GB, free: 13.97 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.292e-05/2.859, allocations: 19.55 kB / 1.181 GB, free: 13.97 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0266/2.885, allocations: 15.52 MB / 1.196 GB, free: 7.691 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.428e-05/2.885, allocations: 4.062 kB / 1.196 GB, free: 7.691 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00304/2.888, allocations: 0.7469 MB / 1.196 GB, free: 7.629 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001952/2.89, allocations: 0.7791 MB / 1.197 GB, free: 7.414 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002958/2.891, allocations: 85.56 kB / 1.197 GB, free: 7.363 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008705/2.899, allocations: 8.593 MB / 1.206 GB, free: 1.258 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.657e-06/2.899, allocations: 3.906 kB / 1.206 GB, free: 1.258 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01478/2.914, allocations: 9.287 MB / 1.215 GB, free: 13.17 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003264/2.917, allocations: 1.044 MB / 1.216 GB, free: 12.53 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008995/2.918, allocations: 82.84 kB / 1.216 GB, free: 12.46 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002507/2.921, allocations: 233.2 kB / 1.216 GB, free: 12.41 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000529/2.921, allocations: 257.2 kB / 1.216 GB, free: 12.38 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002452/2.922, allocations: 110.9 kB / 1.216 GB, free: 12.35 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.005641/2.927, allocations: 3.224 MB / 1.22 GB, free: 10.07 MB / 0.5261 GB Notification: Performance of sort global known variables: time 1.934e-06/2.927, allocations: 0 / 1.22 GB, free: 10.07 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.008602/2.936, allocations: 1.938 MB / 1.221 GB, free: 8.152 MB / 0.5261 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 13 * Number of states: 4 (inertiaLoad.w,quadraticSpeedDependentTorque.phi,inertiaLoadQS.w,quadraticSpeedDependentTorqueQS.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 (369): * Single equations (assignments): 363 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 1,(1,100.0%) 1,(8,62.5%) 38} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001264/2.937, allocations: 0.6033 MB / 1.222 GB, free: 7.648 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.01243/2.95, allocations: 7.56 MB / 1.229 GB, free: 0.8945 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 1.023e-05/2.95, allocations: 4.062 kB / 1.229 GB, free: 0.8906 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.2562/3.206, allocations: 3.858 MB / 1.233 GB, free: 101.1 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008424/3.214, allocations: 1.223 MB / 1.234 GB, free: 101.1 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03478/3.249, allocations: 23.96 MB / 1.258 GB, free: 91.38 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008187/3.257, allocations: 7.321 MB / 1.265 GB, free: 90.3 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.006402/3.264, allocations: 2.148 MB / 1.267 GB, free: 90.11 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001077/3.265, allocations: 407.2 kB / 1.267 GB, free: 90.11 MB / 0.5261 GB Notification: Performance of SimCode: time 7.41e-07/3.265, allocations: 2.844 kB / 1.267 GB, free: 90.11 MB / 0.5261 GB Notification: Performance of Templates: time 0.1201/3.385, allocations: 75.01 MB / 1.341 GB, free: 83.47 MB / 0.5261 GB make -j1 -f Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.makefile make -j1 -f Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.makefile clang -Os -fPIC -falign-functions -mfpmath=sse -fno-dollars-in-identifiers -Wno-parentheses-equality -Os -march=native -I"/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/c" -I"/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc" -I. -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME -DOMC_MODEL_PREFIX=Modelica_trunk_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMR_CurrentSource -DOMC_NUM_MIXED_SYSTEMS=0 -DOMC_NUM_LINEAR_SYSTEMS=10 -DOMC_NUM_NONLINEAR_SYSTEMS=0 -DOMC_NDELAY_EXPRESSIONS=0 -DOMC_NVAR_STRING=0 -c -o Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.o Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.c In file included from Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.c:7: In file included from ./Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource_model.h:26: ./Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource_functions.h:1158:1: error: unknown type name '_omcQComplexOutput_24currentRMSSensorQS_24currentSensor_24i' _omcQComplexOutput_24currentRMSSensorQS_24currentSensor_24i omc__omcQComplexOutput_24currentRMSSensorQS_24currentSensor_24i (threadData_t *threadData, modelica_real omc_re, modelica_real omc_im); ^ ./Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource_functions.h:1167:1: error: unknown type name '_omcQComplexOutput_24rotorAngleQS_24voltageSensor_24v' _omcQComplexOutput_24rotorAngleQS_24voltageSensor_24v omc__omcQComplexOutput_24rotorAngleQS_24voltageSensor_24v (threadData_t *threadData, modelica_real omc_re, modelica_real omc_im); ^ ./Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource_functions.h:1176:1: error: unknown type name '_omcQComplexOutput_24rotorAngleQS_24voltageSensor_24voltageSensor_24v' _omcQComplexOutput_24rotorAngleQS_24voltageSensor_24voltageSensor_24v omc__omcQComplexOutput_24rotorAngleQS_24voltageSensor_24voltageSensor_24v (threadData_t *threadData, modelica_real omc_re, modelica_real omc_im); ^ ./Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource_functions.h:1185:1: error: unknown type name '_omcQComplexOutput_24voltageQuasiRMSSensorQS_24voltageSensor_24v' _omcQComplexOutput_24voltageQuasiRMSSensorQS_24voltageSensor_24v omc__omcQComplexOutput_24voltageQuasiRMSSensorQS_24voltageSensor_24v (threadData_t *threadData, modelica_real omc_re, modelica_real omc_im); ^ 4 errors generated. make: *** [: Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.o] Error 1