Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource.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.SMPM_VoltageSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|inertiaLoad.phi|inertiaLoad.w|smpm.is.1.|smpm.is.2.|smpm.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smpm.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|voltageController.PI_d.x|voltageController.PI_q.x",fileNamePrefix="Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|inertiaLoad.phi|inertiaLoad.w|smpm.is.1.|smpm.is.2.|smpm.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smpm.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|voltageController.PI_d.x|voltageController.PI_q.x",fileNamePrefix="Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001186/0.001186, allocations: 92.67 kB / 17.96 MB, free: 5.617 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.001447/0.001447, allocations: 170.6 kB / 18.85 MB, free: 4.77 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.109/2.109, allocations: 205.4 MB / 225 MB, free: 12.79 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.0005914/0.0005916, allocations: 16.47 kB / 282 MB, free: 3.359 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1419/0.1425, allocations: 47.58 MB / 329.6 MB, free: 3.703 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource): time 0.02031/0.1629, allocations: 14.91 MB / 344.5 MB, free: 4.727 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01595/0.1789, allocations: 5.265 MB / 349.8 MB, free: 15.45 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004492/0.1834, allocations: 91.56 kB / 349.9 MB, free: 15.36 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004535/0.188, allocations: 0.9559 MB / 350.8 MB, free: 14.39 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006843/0.1949, allocations: 1.209 MB / 352.1 MB, free: 13.18 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003642/0.1985, allocations: 0.8655 MB / 352.9 MB, free: 12.31 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.008509/0.2071, allocations: 4.083 MB / 357 MB, free: 8.211 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006589/0.2137, allocations: 2.97 MB / 360 MB, free: 5.18 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00367/0.2174, allocations: 1.33 MB / 361.3 MB, free: 3.844 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004958/0.2224, allocations: 1.808 MB / 363.1 MB, free: 2.027 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001717/0.2241, allocations: 208 kB / 363.3 MB, free: 1.824 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003282/0.2274, allocations: 435.8 kB / 363.7 MB, free: 1.398 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002162/0.2296, allocations: 0.9067 MB / 364.6 MB, free: 500 kB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003968/0.2336, allocations: 1.843 MB / 366.5 MB, free: 14.62 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007107/0.2407, allocations: 5.578 MB / 372.1 MB, free: 9.035 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.346e-06/0.2408, allocations: 0 / 372.1 MB, free: 9.035 MB / 318.1 MB Notification: Performance of FrontEnd: time 3.877e-06/0.2408, allocations: 0 / 372.1 MB, free: 9.035 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0002191/0.241, allocations: 4 kB / 372.1 MB, free: 9.031 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: 911 * Number of variables: 911 Notification: Performance of Generate backend data structure: time 0.0117/0.2527, allocations: 3.913 MB / 376 MB, free: 5.047 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.526e-05/0.2528, allocations: 12.03 kB / 376 MB, free: 5.035 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003638/0.2565, allocations: 0.6675 MB / 376.7 MB, free: 4.363 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005181/0.2617, allocations: 2.338 MB / 379 MB, free: 1.973 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003106/0.262, allocations: 271.5 kB / 379.3 MB, free: 1.707 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006182/0.2626, allocations: 347.8 kB / 379.6 MB, free: 1.367 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.3574/0.62, allocations: 4.456 MB / 384.1 MB, free: 28.32 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001004/0.6202, allocations: 5.219 kB / 384.1 MB, free: 28.32 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003574/0.6205, allocations: 141.7 kB / 384.2 MB, free: 28.32 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002354/0.6208, allocations: 162.5 kB / 384.4 MB, free: 28.31 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01012/0.6309, allocations: 3.747 MB / 388.1 MB, free: 28.28 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03192/0.6628, allocations: 14.55 MB / 402.7 MB, free: 21.17 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004772/0.6677, allocations: 5.376 MB / 408 MB, free: 16.13 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001834/0.6695, allocations: 1.283 MB / 409.3 MB, free: 15.51 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006435/0.676, allocations: 3.825 MB / 413.1 MB, free: 12.83 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.313e-05/0.676, allocations: 47.62 kB / 413.2 MB, free: 12.78 MB / 318.1 MB Notification: Performance of pre-optimization done (n=127): time 3.897e-06/0.676, allocations: 0 / 413.2 MB, free: 12.78 MB / 318.1 MB Notification: Performance of matching and sorting (n=131): time 0.00907/0.6851, allocations: 5.485 MB / 418.7 MB, free: 8.105 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.896e-05/0.6852, allocations: 68.72 kB / 418.7 MB, free: 8.027 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003046/0.6882, allocations: 2.094 MB / 420.8 MB, free: 5.898 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001049/0.6884, allocations: 45.7 kB / 420.9 MB, free: 5.848 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001039/0.6894, allocations: 1.664 MB / 422.5 MB, free: 4.172 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003553/0.6898, allocations: 459.4 kB / 423 MB, free: 3.727 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002095/0.69, allocations: 149.6 kB / 423.1 MB, free: 3.574 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 8.767e-05/0.6901, allocations: 305.1 kB / 423.4 MB, free: 3.273 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001015/0.6911, allocations: 0.7178 MB / 424.2 MB, free: 2.559 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00135/0.6925, allocations: 1.352 MB / 425.5 MB, free: 0.9258 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00326/0.6957, allocations: 2.235 MB / 427.7 MB, free: 14.49 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.098e-05/0.6958, allocations: 4 kB / 427.8 MB, free: 14.48 MB / 334.1 MB Notification: Performance of matching and sorting (n=234) (initialization): time 0.00473/0.7005, allocations: 2.52 MB / 430.3 MB, free: 12.05 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.382e-05/0.7006, allocations: 15.84 kB / 430.3 MB, free: 12.04 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.228e-05/0.7006, allocations: 24.48 kB / 430.3 MB, free: 12.02 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004731/0.7011, allocations: 140.4 kB / 430.4 MB, free: 11.87 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001756/0.7029, allocations: 470.1 kB / 430.9 MB, free: 11.44 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003484/0.7064, allocations: 3.078 MB / 434 MB, free: 8.125 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002016/0.7084, allocations: 115.8 kB / 434.1 MB, free: 8.012 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000145/0.7085, allocations: 87.98 kB / 434.2 MB, free: 7.926 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 93 * 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 (227): * Single equations (assignments): 224 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,5,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002807/0.7114, allocations: 1.045 MB / 435.2 MB, free: 6.898 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004596/0.7118, allocations: 213.4 kB / 435.4 MB, free: 6.688 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004683/0.7165, allocations: 2.183 MB / 437.6 MB, free: 4.469 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.85e-05/0.7166, allocations: 12 kB / 437.6 MB, free: 4.457 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.195e-05/0.7166, allocations: 7.656 kB / 437.6 MB, free: 4.453 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.792e-05/0.7166, allocations: 7.969 kB / 437.6 MB, free: 4.445 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01181/0.7284, allocations: 5.184 MB / 442.8 MB, free: 15.18 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.128e-05/0.7285, allocations: 0 / 442.8 MB, free: 15.18 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001064/0.7295, allocations: 231 kB / 443.1 MB, free: 14.96 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009126/0.7305, allocations: 270.8 kB / 443.3 MB, free: 14.69 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000166/0.7307, allocations: 35.98 kB / 443.4 MB, free: 14.66 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009466/0.7402, allocations: 7.106 MB / 450.5 MB, free: 7.059 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.094e-05/0.7403, allocations: 4 kB / 450.5 MB, free: 7.055 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006717/0.747, allocations: 3.192 MB / 453.7 MB, free: 3.785 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001691/0.7487, allocations: 462.2 kB / 454.1 MB, free: 3.312 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009116/0.7497, allocations: 36 kB / 454.1 MB, free: 3.277 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001667/0.7513, allocations: 67.92 kB / 454.2 MB, free: 3.211 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003227/0.7517, allocations: 92.81 kB / 454.3 MB, free: 3.121 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001287/0.7518, allocations: 37.84 kB / 454.3 MB, free: 3.086 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.004244/0.7561, allocations: 1.434 MB / 455.8 MB, free: 1.637 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.7561, allocations: 0 / 455.8 MB, free: 1.637 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.003535/0.7597, allocations: 0.5636 MB / 456.3 MB, free: 1.074 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 6 (smpm.inertiaRotor.w,smpm.stator.core.Phi.re,smpm.stator.core.Phi.im,quadraticSpeedDependentTorque.phi,voltageController.PI_d.x,voltageController.PI_q.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 (112): * Single equations (assignments): 108 * Array equations: 0 * 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 {(1,5,100.0%), (1,1,100.0%), (1,8,100.0%), (2,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.0005794/0.7602, allocations: 163.5 kB / 456.5 MB, free: 0.9219 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.004304/0.7646, allocations: 2.087 MB / 458.6 MB, free: 14.86 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 7.434e-06/0.7646, allocations: 0 / 458.6 MB, free: 14.86 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00249/0.7671, allocations: 1.386 MB / 460 MB, free: 13.45 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005193/0.7723, allocations: 0.5215 MB / 460.5 MB, free: 12.93 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01796/0.7903, allocations: 7.741 MB / 468.2 MB, free: 5.141 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004582/0.7949, allocations: 2.369 MB / 470.6 MB, free: 2.742 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001129/0.7961, allocations: 167.4 kB / 470.8 MB, free: 2.578 MB / 366.1 MB Notification: Performance of SimCode: time 1.503e-06/0.7961, allocations: 0 / 470.8 MB, free: 2.578 MB / 366.1 MB Notification: Performance of Templates: time 0.4472/1.243, allocations: 99.08 MB / 0.5565 GB, free: 159.2 MB / 446.1 MB make -j1 -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource.makefile make -j1 -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource.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.SMPM_VoltageSourceCalcHelperMain.o OMCppModelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSourceCalcHelperMain.cpp clang: error: no such file or directory: 'NOTFOUND' make: *** [: OMCppModelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSourceCalcHelperMain.o] Error 1