Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.conf.json 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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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) Running command: translateModel(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor,tolerance=1e-07,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|coil.Phi|coil.i|r_mLeak.port_p.Phi|rootMeanSquare.mean.x|sourceQS.pin_p.reference.gamma",fileNamePrefix="Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor") translateModel(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor,tolerance=1e-07,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|coil.Phi|coil.i|r_mLeak.port_p.Phi|rootMeanSquare.mean.x|sourceQS.pin_p.reference.gamma",fileNamePrefix="Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001397/0.001397, allocations: 176.4 kB / 17.4 MB, free: 4.422 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.239/1.239, allocations: 223.3 MB / 241.4 MB, free: 11.71 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007587/0.0007586, allocations: 100.7 kB / 292.6 MB, free: 10.8 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003209/0.0003209, allocations: 15.92 kB / 352.3 MB, free: 15.04 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2219/0.2223, allocations: 50.39 MB / 402.7 MB, free: 32.49 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1083/0.3306, allocations: 93.3 MB / 496 MB, free: 3.059 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002558/0.331, allocations: 91.94 kB / 496.1 MB, free: 2.969 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2732/0.6042, allocations: 30.23 MB / 0.514 GB, free: 90.45 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.245e-06/0.6042, allocations: 0 / 0.514 GB, free: 90.45 MB / 378.7 MB Notification: Performance of Transformations before backend: time 3.664e-05/0.6043, allocations: 19.41 kB / 0.514 GB, free: 90.45 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 282 * Number of variables: 282 Notification: Performance of Generate backend data structure: time 0.003473/0.6078, allocations: 1.267 MB / 0.5153 GB, free: 89.79 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.954e-05/0.6078, allocations: 7.531 kB / 0.5153 GB, free: 89.79 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002409/0.6102, allocations: 393.3 kB / 0.5157 GB, free: 89.73 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008788/0.6111, allocations: 0.5 MB / 0.5161 GB, free: 89.46 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.996e-05/0.6112, allocations: 82.69 kB / 0.5162 GB, free: 89.46 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002056/0.6114, allocations: 110.5 kB / 0.5163 GB, free: 89.46 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00179/0.6132, allocations: 0.9753 MB / 0.5173 GB, free: 89.38 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.998e-05/0.6133, allocations: 6.938 kB / 0.5173 GB, free: 89.37 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.817e-05/0.6134, allocations: 43.41 kB / 0.5173 GB, free: 89.37 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.096e-05/0.6134, allocations: 32.25 kB / 0.5174 GB, free: 89.37 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001694/0.6151, allocations: 0.9709 MB / 0.5183 GB, free: 89.35 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005445/0.6206, allocations: 3.75 MB / 0.522 GB, free: 87.29 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001542/0.6221, allocations: 1.54 MB / 0.5235 GB, free: 86.1 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006429/0.6228, allocations: 429.7 kB / 0.5239 GB, free: 85.94 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.628e-05/0.6229, allocations: 103.7 kB / 0.524 GB, free: 85.84 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007107/0.6236, allocations: 485.6 kB / 0.5244 GB, free: 85.59 MB / 378.7 MB Notification: Performance of pre-optimization done (n=96): time 3.016e-06/0.6237, allocations: 0 / 0.5244 GB, free: 85.59 MB / 378.7 MB Notification: Performance of matching and sorting (n=122): time 0.007674/0.6313, allocations: 4.176 MB / 0.5285 GB, free: 82.98 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.141e-05/0.6314, allocations: 226.6 kB / 0.5287 GB, free: 82.71 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003917/0.6319, allocations: 391.8 kB / 0.5291 GB, free: 82.37 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 5.347e-05/0.6319, allocations: 45.7 kB / 0.5292 GB, free: 82.32 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002257/0.6322, allocations: 416.5 kB / 0.5296 GB, free: 81.95 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002167/0.6324, allocations: 414.7 kB / 0.5299 GB, free: 81.58 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.723e-05/0.6324, allocations: 28 kB / 0.53 GB, free: 81.55 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 8.469e-05/0.6325, allocations: 375.7 kB / 0.5303 GB, free: 81.2 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006214/0.6332, allocations: 346.7 kB / 0.5307 GB, free: 80.9 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006565/0.6338, allocations: 0.5468 MB / 0.5312 GB, free: 80.34 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00127/0.6351, allocations: 0.9353 MB / 0.5321 GB, free: 79.36 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.428e-06/0.6351, allocations: 4 kB / 0.5321 GB, free: 79.36 MB / 378.7 MB Notification: Performance of matching and sorting (n=155) (initialization): time 0.002125/0.6372, allocations: 1.358 MB / 0.5334 GB, free: 78.11 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.105e-05/0.6373, allocations: 12 kB / 0.5335 GB, free: 78.09 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.288e-05/0.6373, allocations: 4 kB / 0.5335 GB, free: 78.09 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00075/0.6381, allocations: 343.1 kB / 0.5338 GB, free: 77.8 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00076/0.6388, allocations: 199.9 kB / 0.534 GB, free: 77.64 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005613/0.6445, allocations: 7.682 MB / 0.5415 GB, free: 69.79 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007752/0.6453, allocations: 59.39 kB / 0.5415 GB, free: 69.74 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.562e-05/0.6454, allocations: 40 kB / 0.5416 GB, free: 69.7 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 22 * Number of states: 0 () * Number of discrete variables: 3 ($whenCondition1,$PRE.rootMeanSquare.mean.y_last,rootMeanSquare.mean.y_last) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (111): * Single equations (assignments): 107 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 4,(1,100.0%) 2,(1,100.0%) 19,(2,100.0%) 18} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004637/0.6458, allocations: 261.3 kB / 0.5418 GB, free: 69.44 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000114/0.646, allocations: 67.25 kB / 0.5419 GB, free: 69.37 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002149/0.6481, allocations: 1.26 MB / 0.5431 GB, free: 68.25 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.072e-05/0.6481, allocations: 12 kB / 0.5431 GB, free: 68.23 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.647e-05/0.6482, allocations: 11.94 kB / 0.5431 GB, free: 68.22 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.359e-05/0.6482, allocations: 11.27 kB / 0.5431 GB, free: 68.22 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003679/0.6519, allocations: 2.659 MB / 0.5457 GB, free: 65.9 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.052e-06/0.6519, allocations: 0 / 0.5457 GB, free: 65.9 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006161/0.6525, allocations: 151.7 kB / 0.5459 GB, free: 65.77 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007039/0.6532, allocations: 324.2 kB / 0.5462 GB, free: 65.46 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.266e-05/0.6533, allocations: 27.98 kB / 0.5462 GB, free: 65.44 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005226/0.6585, allocations: 7.425 MB / 0.5535 GB, free: 57.5 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.265e-06/0.6586, allocations: 3.938 kB / 0.5535 GB, free: 57.49 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002864/0.6614, allocations: 1.766 MB / 0.5552 GB, free: 55.69 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003832/0.6619, allocations: 224.1 kB / 0.5554 GB, free: 55.45 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001355/0.662, allocations: 23.94 kB / 0.5554 GB, free: 55.43 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005408/0.6626, allocations: 39.98 kB / 0.5555 GB, free: 55.39 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002024/0.6628, allocations: 96.8 kB / 0.5556 GB, free: 55.29 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.431e-05/0.6628, allocations: 32 kB / 0.5556 GB, free: 55.26 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0002823/0.6631, allocations: 267.2 kB / 0.5559 GB, free: 55 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.6631, allocations: 4 kB / 0.5559 GB, free: 55 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001265/0.6644, allocations: 324 kB / 0.5562 GB, free: 54.68 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 3 (coil.i,rootMeanSquare.mean.x,currentSensorQS.pin_p.reference.gamma) * Number of discrete variables: 2 ($whenCondition1,rootMeanSquare.mean.y_last) * Number of discrete states: 1 (rootMeanSquare.mean.x) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (82): * Single equations (assignments): 77 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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 {(1,100.0%) 2,(2,100.0%) 18,(1,100.0%) 4,(1,100.0%) 17} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003342/0.6648, allocations: 198.2 kB / 0.5564 GB, free: 54.49 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.002391/0.6672, allocations: 1.605 MB / 0.5579 GB, free: 52.84 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.208e-06/0.6672, allocations: 0 / 0.5579 GB, free: 52.84 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001463/0.6687, allocations: 1.134 MB / 0.559 GB, free: 51.65 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007129/0.6694, allocations: 77.48 kB / 0.5591 GB, free: 51.57 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003749/0.6731, allocations: 2.364 MB / 0.5614 GB, free: 49.18 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000451/0.6736, allocations: 1.017 MB / 0.5624 GB, free: 48.13 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.000577/0.6742, allocations: 106 kB / 0.5625 GB, free: 48.02 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001557/0.6744, allocations: 51.44 kB / 0.5626 GB, free: 47.97 MB / 378.7 MB Notification: Performance of SimCode: time 7.82e-07/0.6744, allocations: 0 / 0.5626 GB, free: 47.97 MB / 378.7 MB Notification: Performance of Templates: time 0.01716/0.6915, allocations: 10.2 MB / 0.5725 GB, free: 37.8 MB / 378.7 MB make -j1 -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.makefile make -j1 -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.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_4_0_0_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_LinearInductor -DOMC_NUM_MIXED_SYSTEMS=0 -DOMC_NUM_LINEAR_SYSTEMS=8 -DOMC_NUM_NONLINEAR_SYSTEMS=0 -DOMC_NDELAY_EXPRESSIONS=0 -DOMC_NVAR_STRING=0 -c -o Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.o Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.c In file included from Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.c:7: In file included from ./Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor_model.h:26: ./Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor_functions.h:387:1: error: unknown type name '_omcQComplexOutput_24currentSensorQS_24i' _omcQComplexOutput_24currentSensorQS_24i omc__omcQComplexOutput_24currentSensorQS_24i (threadData_t *threadData, modelica_real omc_re, modelica_real omc_im); ^ 1 error generated. make: *** [: Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.o] Error 1