Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.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.Electrical.Machines.Examples.DCMachines.DCPM_withLosses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|dcpm1.la.i|dcpm2.la.i|loadInertia1.phi|loadInertia1.w|loadInertia2.phi|loadInertia2.w",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses") translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|dcpm1.la.i|dcpm2.la.i|loadInertia1.phi|loadInertia1.w|loadInertia2.phi|loadInertia2.w",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008825/0.0008825, allocations: 89.61 kB / 17.58 MB, free: 6.219 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.0009067/0.0009069, allocations: 188.5 kB / 18.48 MB, free: 5.379 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.897/1.897, allocations: 205.4 MB / 224.6 MB, free: 13.07 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.0004998/0.0004998, allocations: 12 kB / 281.4 MB, free: 3.723 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1256/0.1261, allocations: 47.58 MB / 329 MB, free: 4.07 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses): time 0.01206/0.1382, allocations: 10.7 MB / 339.7 MB, free: 9.32 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.007444/0.1457, allocations: 3.119 MB / 342.8 MB, free: 6.191 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001987/0.1477, allocations: 35.94 kB / 342.8 MB, free: 6.156 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002263/0.15, allocations: 0.5203 MB / 343.4 MB, free: 5.633 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002853/0.1529, allocations: 0.5971 MB / 344 MB, free: 5.031 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001217/0.1541, allocations: 251.6 kB / 344.2 MB, free: 4.785 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.003886/0.158, allocations: 2.167 MB / 346.4 MB, free: 2.609 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001266/0.1593, allocations: 0.6872 MB / 347.1 MB, free: 1.902 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001509/0.1608, allocations: 0.7272 MB / 347.8 MB, free: 1.172 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001026/0.1618, allocations: 0.8009 MB / 348.6 MB, free: 376 kB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001763/0.162, allocations: 108 kB / 348.7 MB, free: 268 kB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004006/0.1624, allocations: 148 kB / 348.8 MB, free: 120 kB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002595/0.1627, allocations: 310.6 kB / 349.1 MB, free: 15.81 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005055/0.1632, allocations: 404.7 kB / 349.5 MB, free: 15.41 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002023/0.1652, allocations: 2.232 MB / 351.8 MB, free: 13.17 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.394e-06/0.1653, allocations: 0 / 351.8 MB, free: 13.17 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.753e-06/0.1653, allocations: 0 / 351.8 MB, free: 13.17 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.062e-05/0.1653, allocations: 0 / 351.8 MB, free: 13.17 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 393 * Number of variables: 393 Notification: Performance of Generate backend data structure: time 0.004136/0.1695, allocations: 1.856 MB / 353.6 MB, free: 11.26 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.727e-05/0.1696, allocations: 12.03 kB / 353.6 MB, free: 11.25 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001216/0.1708, allocations: 289.4 kB / 353.9 MB, free: 10.96 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002106/0.1729, allocations: 1.056 MB / 355 MB, free: 9.848 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.44e-05/0.173, allocations: 115.1 kB / 355.1 MB, free: 9.734 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002099/0.1732, allocations: 159.9 kB / 355.3 MB, free: 9.578 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002906/0.1761, allocations: 1.504 MB / 356.8 MB, free: 8.012 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.412e-05/0.1762, allocations: 11.91 kB / 356.8 MB, free: 8 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001422/0.1764, allocations: 64 kB / 356.8 MB, free: 7.938 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.6e-05/0.1764, allocations: 36 kB / 356.9 MB, free: 7.902 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002493/0.1789, allocations: 1.065 MB / 357.9 MB, free: 6.832 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009186/0.1881, allocations: 6.308 MB / 364.2 MB, free: 236 kB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001489/0.1897, allocations: 0.6388 MB / 364.9 MB, free: 15.58 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008401/0.1905, allocations: 462.8 kB / 365.3 MB, free: 15.13 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.261e-05/0.1906, allocations: 16.55 kB / 365.3 MB, free: 15.11 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.671e-05/0.1906, allocations: 47.08 kB / 365.4 MB, free: 15.06 MB / 318.1 MB Notification: Performance of pre-optimization done (n=66): time 3.917e-06/0.1907, allocations: 0 / 365.4 MB, free: 15.06 MB / 318.1 MB Notification: Performance of matching and sorting (n=72): time 0.005419/0.1961, allocations: 2.458 MB / 367.8 MB, free: 12.51 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.678e-05/0.1962, allocations: 115.5 kB / 368 MB, free: 12.37 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001955/0.1982, allocations: 1.282 MB / 369.2 MB, free: 11.07 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 5.216e-05/0.1982, allocations: 37.7 kB / 369.3 MB, free: 11.03 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006574/0.1989, allocations: 0.8608 MB / 370.1 MB, free: 10.16 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002031/0.1991, allocations: 256.3 kB / 370.4 MB, free: 9.902 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.163e-05/0.1992, allocations: 20 kB / 370.4 MB, free: 9.883 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001524/0.1993, allocations: 349.9 kB / 370.8 MB, free: 9.535 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005619/0.1999, allocations: 294.5 kB / 371 MB, free: 9.25 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008813/0.2008, allocations: 0.746 MB / 371.8 MB, free: 8.285 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006912/0.2015, allocations: 411 kB / 372.2 MB, free: 7.883 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.995e-06/0.2015, allocations: 4 kB / 372.2 MB, free: 7.879 MB / 318.1 MB Notification: Performance of matching and sorting (n=144) (initialization): time 0.002295/0.2038, allocations: 1.291 MB / 373.5 MB, free: 6.57 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.808e-05/0.2038, allocations: 12 kB / 373.5 MB, free: 6.559 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.163e-05/0.2039, allocations: 16 kB / 373.5 MB, free: 6.543 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005239/0.2044, allocations: 143 kB / 373.6 MB, free: 6.395 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007934/0.2052, allocations: 259.6 kB / 373.9 MB, free: 6.141 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003786/0.209, allocations: 4.32 MB / 378.2 MB, free: 1.426 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001216/0.2102, allocations: 68 kB / 378.3 MB, free: 1.359 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.378e-05/0.2103, allocations: 56 kB / 378.3 MB, free: 1.305 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 68 * 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 (137): * Single equations (assignments): 134 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 2,(1,100.0%) 1} * Non-linear torn systems: 1 {1 4} Notification: Performance of prepare postOptimizeDAE: time 0.0007879/0.2111, allocations: 349.4 kB / 378.7 MB, free: 0.9531 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002142/0.2114, allocations: 138.3 kB / 378.8 MB, free: 0.8164 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.2238/0.4352, allocations: 0.8631 MB / 379.7 MB, free: 50.06 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.106e-05/0.4352, allocations: 8.266 kB / 379.7 MB, free: 50.06 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.037e-06/0.4353, allocations: 1.062 kB / 379.7 MB, free: 50.06 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.754e-05/0.4353, allocations: 4.453 kB / 379.7 MB, free: 50.06 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005514/0.4408, allocations: 2.375 MB / 382.1 MB, free: 49.6 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.293e-05/0.4409, allocations: 4.094 kB / 382.1 MB, free: 49.6 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006783/0.4415, allocations: 137 kB / 382.2 MB, free: 49.6 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005028/0.4421, allocations: 142.6 kB / 382.3 MB, free: 49.58 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.332e-05/0.4421, allocations: 24.5 kB / 382.4 MB, free: 49.58 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003402/0.4455, allocations: 4.446 MB / 386.8 MB, free: 45.68 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.095e-06/0.4456, allocations: 5.562 kB / 386.8 MB, free: 45.68 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002692/0.4483, allocations: 1.348 MB / 388.2 MB, free: 45.05 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006497/0.4489, allocations: 281.3 kB / 388.4 MB, free: 44.9 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001529/0.4491, allocations: 18.2 kB / 388.5 MB, free: 44.89 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006101/0.4497, allocations: 44.75 kB / 388.5 MB, free: 44.88 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000191/0.4499, allocations: 70.5 kB / 388.6 MB, free: 44.86 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.024e-05/0.45, allocations: 26.08 kB / 388.6 MB, free: 44.86 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.001694/0.4517, allocations: 0.8634 MB / 389.5 MB, free: 44.5 MB / 318.1 MB Notification: Performance of sort global known variables: time 2.7e-07/0.4517, allocations: 0 / 389.5 MB, free: 44.5 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001666/0.4534, allocations: 326.6 kB / 389.8 MB, free: 44.47 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 6 (dcpm1.inertiaRotor.w,dcpm1.la.i,loadTorque1.phi,dcpm2.inertiaRotor.w,dcpm2.la.i,loadTorque2.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 (63): * Single equations (assignments): 60 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 2,(1,100.0%) 1} * Non-linear torn systems: 1 {1 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002676/0.4536, allocations: 131.5 kB / 389.9 MB, free: 44.36 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.002248/0.4559, allocations: 1.134 MB / 391 MB, free: 43.76 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 8.405e-06/0.4559, allocations: 2.641 kB / 391 MB, free: 43.76 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001067/0.457, allocations: 0.7163 MB / 391.8 MB, free: 43.29 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002089/0.4591, allocations: 343.6 kB / 392.1 MB, free: 43.18 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006684/0.4658, allocations: 3.634 MB / 395.7 MB, free: 40.96 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008433/0.4667, allocations: 1.22 MB / 397 MB, free: 40.23 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003886/0.4671, allocations: 97.23 kB / 397.1 MB, free: 40.22 MB / 318.1 MB Notification: Performance of SimCode: time 1.984e-06/0.4671, allocations: 0 / 397.1 MB, free: 40.22 MB / 318.1 MB Notification: Performance of Templates: time 0.04425/0.5113, allocations: 40.66 MB / 437.7 MB, free: 4.508 MB / 318.1 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.makefile make -j1 -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.makefile clang++ NOTFOUND -Winvalid-pch -O0 -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/c/sundials" -DMEASURETIME_PROFILEBLOCKS -DUSE_LOGGER -c -o OMCppModelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLossesCalcHelperMain.o OMCppModelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLossesCalcHelperMain.cpp clang: error: no such file or directory: 'NOTFOUND' make: *** [: OMCppModelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLossesCalcHelperMain.o] Error 1