Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Blocks.Examples.RealNetwork1.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.Blocks.Examples.RealNetwork1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|multiSwitch.u.1.|multiSwitch.u.2.",fileNamePrefix="Modelica_3.2.3_Modelica.Blocks.Examples.RealNetwork1") translateModel(Modelica.Blocks.Examples.RealNetwork1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|multiSwitch.u.1.|multiSwitch.u.2.",fileNamePrefix="Modelica_3.2.3_Modelica.Blocks.Examples.RealNetwork1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001209/0.001209, allocations: 97.7 kB / 17.96 MB, free: 5.633 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.001889/0.001889, allocations: 176.3 kB / 18.86 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.02/2.02, allocations: 205.4 MB / 225 MB, free: 12.98 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.0005312/0.0005312, allocations: 12 kB / 282 MB, free: 3.426 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.125/0.1255, allocations: 47.59 MB / 329.6 MB, free: 3.766 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.RealNetwork1): time 0.002789/0.1284, allocations: 1.564 MB / 331.2 MB, free: 2.188 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001765/0.1302, allocations: 0.6009 MB / 331.8 MB, free: 1.578 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002745/0.1305, allocations: 7.938 kB / 331.8 MB, free: 1.57 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001742/0.1307, allocations: 19.84 kB / 331.8 MB, free: 1.551 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002455/0.1309, allocations: 27.73 kB / 331.8 MB, free: 1.523 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003362/0.1313, allocations: 55.94 kB / 331.9 MB, free: 1.469 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003182/0.1316, allocations: 155.4 kB / 332 MB, free: 1.316 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002295/0.1319, allocations: 69.41 kB / 332.1 MB, free: 1.246 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001678/0.132, allocations: 55.72 kB / 332.2 MB, free: 1.191 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001821/0.1322, allocations: 71.56 kB / 332.2 MB, free: 1.121 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 2.981e-05/0.1323, allocations: 7.938 kB / 332.2 MB, free: 1.113 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.588e-05/0.1324, allocations: 19.98 kB / 332.3 MB, free: 1.094 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001118/0.1325, allocations: 31.86 kB / 332.3 MB, free: 1.062 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001238/0.1326, allocations: 89.23 kB / 332.4 MB, free: 0.9688 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002055/0.1328, allocations: 115.9 kB / 332.5 MB, free: 0.8555 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.288e-06/0.1329, allocations: 4 kB / 332.5 MB, free: 0.8516 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.643e-06/0.1329, allocations: 0 / 332.5 MB, free: 0.8516 MB / 270.1 MB Notification: Performance of Transformations before backend: time 7.734e-06/0.1329, allocations: 0 / 332.5 MB, free: 0.8516 MB / 270.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 34 * Number of variables: 34 Notification: Performance of Generate backend data structure: time 0.001076/0.134, allocations: 499 kB / 333 MB, free: 324 kB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.154e-05/0.134, allocations: 8.031 kB / 333 MB, free: 316 kB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.59e-05/0.1341, allocations: 24.66 kB / 333 MB, free: 292 kB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003748/0.1345, allocations: 239.7 kB / 333.2 MB, free: 12 kB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.287e-05/0.1346, allocations: 12.66 kB / 333.3 MB, free: 0 / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.391e-05/0.1346, allocations: 16.42 kB / 333.3 MB, free: 15.98 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005164/0.1351, allocations: 199.2 kB / 333.5 MB, free: 15.77 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.439e-05/0.1352, allocations: 4 kB / 333.5 MB, free: 15.77 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.086e-05/0.1352, allocations: 4 kB / 333.5 MB, free: 15.77 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.871e-05/0.1352, allocations: 8 kB / 333.5 MB, free: 15.76 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003425/0.1356, allocations: 151.8 kB / 333.6 MB, free: 15.61 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001236/0.1368, allocations: 0.7896 MB / 334.4 MB, free: 14.76 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003302/0.1372, allocations: 165 kB / 334.6 MB, free: 14.58 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001889/0.1374, allocations: 85.8 kB / 334.7 MB, free: 14.49 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.554e-05/0.1374, allocations: 8.125 kB / 334.7 MB, free: 14.48 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002883/0.1377, allocations: 152.9 kB / 334.8 MB, free: 14.31 MB / 286.1 MB Notification: Performance of pre-optimization done (n=15): time 1.703e-06/0.1377, allocations: 7.938 kB / 334.8 MB, free: 14.3 MB / 286.1 MB Notification: Performance of matching and sorting (n=15): time 0.0006249/0.1384, allocations: 261.9 kB / 335.1 MB, free: 14.04 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.321e-05/0.1384, allocations: 89.09 kB / 335.2 MB, free: 13.94 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002049/0.1387, allocations: 202.9 kB / 335.4 MB, free: 13.73 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.845e-05/0.1387, allocations: 33.7 kB / 335.4 MB, free: 13.69 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001096/0.1388, allocations: 136.2 kB / 335.5 MB, free: 13.55 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.796e-05/0.1389, allocations: 47.36 kB / 335.6 MB, free: 13.5 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.451e-05/0.1389, allocations: 17.72 kB / 335.6 MB, free: 13.48 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001558/0.1391, allocations: 334.8 kB / 335.9 MB, free: 13.14 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001643/0.1393, allocations: 79.95 kB / 336 MB, free: 13.07 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001977/0.1395, allocations: 122.8 kB / 336.1 MB, free: 12.92 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003748/0.1399, allocations: 222.7 kB / 336.3 MB, free: 12.68 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.057e-06/0.1399, allocations: 0 / 336.3 MB, free: 12.68 MB / 286.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0004735/0.1403, allocations: 245.2 kB / 336.6 MB, free: 12.43 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.826e-05/0.1404, allocations: 8 kB / 336.6 MB, free: 12.43 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.46e-06/0.1404, allocations: 4.188 kB / 336.6 MB, free: 12.42 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.394e-05/0.1404, allocations: 4 kB / 336.6 MB, free: 12.42 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001688/0.1406, allocations: 35.91 kB / 336.6 MB, free: 12.38 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.097e-05/0.1406, allocations: 8 kB / 336.6 MB, free: 12.38 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001785/0.1408, allocations: 35.83 kB / 336.7 MB, free: 12.34 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.797e-05/0.1408, allocations: 8 kB / 336.7 MB, free: 12.33 MB / 286.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 11 ($PRE.multiSwitch.u[1],$PRE.multiSwitch.u[2],$whenCondition2,$whenCondition1,booleanPulse2.pulseStart,$PRE.booleanPulse2.pulseStart,multiSwitch.firstActiveIndex,multiSwitch.u[2],multiSwitch.u[1],booleanPulse1.pulseStart,$PRE.booleanPulse1.pulseStart) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (23): * Single equations (assignments): 23 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001573/0.141, allocations: 149.6 kB / 336.8 MB, free: 12.18 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.769e-05/0.141, allocations: 19.81 kB / 336.8 MB, free: 12.16 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004732/0.1415, allocations: 214.9 kB / 337.1 MB, free: 11.94 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.851e-06/0.1415, allocations: 4 kB / 337.1 MB, free: 11.93 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.924e-06/0.1415, allocations: 4 kB / 337.1 MB, free: 11.93 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.863e-06/0.1416, allocations: 4.078 kB / 337.1 MB, free: 11.93 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002959/0.1419, allocations: 277.3 kB / 337.3 MB, free: 11.61 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.767e-06/0.1419, allocations: 112 / 337.3 MB, free: 11.61 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001169/0.142, allocations: 27.86 kB / 337.4 MB, free: 11.58 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.378e-06/0.142, allocations: 0 / 337.4 MB, free: 11.58 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.147e-05/0.142, allocations: 4 kB / 337.4 MB, free: 11.57 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.449e-06/0.142, allocations: 3.984 kB / 337.4 MB, free: 11.57 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.783e-06/0.142, allocations: 0 / 337.4 MB, free: 11.57 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004461/0.1425, allocations: 241.6 kB / 337.6 MB, free: 11.31 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.642e-05/0.1426, allocations: 92.83 kB / 337.7 MB, free: 11.2 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.494e-05/0.1426, allocations: 0 / 337.7 MB, free: 11.2 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001487/0.1427, allocations: 31.97 kB / 337.7 MB, free: 11.17 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.098e-05/0.1428, allocations: 15.92 kB / 337.7 MB, free: 11.16 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.294e-05/0.1428, allocations: 8 kB / 337.8 MB, free: 11.15 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0001419/0.143, allocations: 144.6 kB / 337.9 MB, free: 11.01 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.143, allocations: 0 / 337.9 MB, free: 11.01 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0002771/0.1433, allocations: 35.94 kB / 337.9 MB, free: 10.97 MB / 286.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition2,$whenCondition1,booleanPulse1.pulseStart,multiSwitch.u[1],multiSwitch.u[2],multiSwitch.firstActiveIndex,booleanPulse2.pulseStart) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (15): * Single equations (assignments): 13 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001642/0.1434, allocations: 103.2 kB / 338 MB, free: 10.86 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0003942/0.1439, allocations: 179.8 kB / 338.2 MB, free: 10.69 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.805e-06/0.1439, allocations: 0 / 338.2 MB, free: 10.69 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001919/0.1441, allocations: 92.27 kB / 338.3 MB, free: 10.6 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003518/0.1444, allocations: 43.86 kB / 338.3 MB, free: 10.55 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007861/0.1452, allocations: 472.5 kB / 338.8 MB, free: 10.06 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003776/0.1456, allocations: 0.7358 MB / 339.5 MB, free: 9.297 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.635e-05/0.1457, allocations: 23.44 kB / 339.6 MB, free: 9.273 MB / 286.1 MB Notification: Performance of SimCode: time 4.41e-07/0.1457, allocations: 0 / 339.6 MB, free: 9.273 MB / 286.1 MB Notification: Performance of Templates: time 0.005741/0.1514, allocations: 2.409 MB / 342 MB, free: 6.867 MB / 286.1 MB make -j1 -f Modelica_3.2.3_Modelica.Blocks.Examples.RealNetwork1.makefile make -j1 -f Modelica_3.2.3_Modelica.Blocks.Examples.RealNetwork1.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.Blocks.Examples.RealNetwork1CalcHelperMain.o OMCppModelica_3.2.3_Modelica.Blocks.Examples.RealNetwork1CalcHelperMain.cpp clang: error: no such file or directory: 'NOTFOUND' make: *** [: OMCppModelica_3.2.3_Modelica.Blocks.Examples.RealNetwork1CalcHelperMain.o] Error 1