Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.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.Spice3.Examples.InvertersApartRecord,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|mp1.S.v|mp2.S.v|v.p.v",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersApartRecord") translateModel(Modelica.Electrical.Spice3.Examples.InvertersApartRecord,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|mp1.S.v|mp2.S.v|v.p.v",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersApartRecord") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008771/0.0008772, allocations: 97.77 kB / 17.96 MB, free: 5.77 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.0009172/0.0009172, allocations: 176.4 kB / 18.86 MB, free: 4.906 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.095/2.095, 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.0004897/0.0004898, allocations: 12 kB / 282 MB, free: 3.395 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1385/0.139, allocations: 47.57 MB / 329.6 MB, free: 3.75 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersApartRecord): time 0.01498/0.1541, allocations: 13.35 MB / 342.9 MB, free: 6.34 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0282/0.1823, allocations: 19.6 MB / 362.6 MB, free: 2.664 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003628/0.186, allocations: 31.81 kB / 362.6 MB, free: 2.633 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00454/0.1906, allocations: 1.076 MB / 363.7 MB, free: 1.547 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01209/0.2027, allocations: 1.887 MB / 365.5 MB, free: 15.65 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007551/0.2103, allocations: 1.156 MB / 366.7 MB, free: 14.49 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.01336/0.2237, allocations: 6.211 MB / 372.9 MB, free: 8.258 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001273/0.2251, allocations: 433.5 kB / 373.3 MB, free: 7.805 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002333/0.2274, allocations: 0.9326 MB / 374.3 MB, free: 6.867 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001264/0.2287, allocations: 1.055 MB / 375.3 MB, free: 5.805 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001358/0.2288, allocations: 40 kB / 375.4 MB, free: 5.766 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005578/0.2344, allocations: 1.128 MB / 376.5 MB, free: 4.637 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003705/0.2348, allocations: 297.6 kB / 376.8 MB, free: 4.344 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001747/0.2366, allocations: 1.368 MB / 378.2 MB, free: 2.961 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003667/0.2402, allocations: 2.722 MB / 380.9 MB, free: 236 kB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.015e-06/0.2403, allocations: 0 / 380.9 MB, free: 236 kB / 318.1 MB Notification: Performance of FrontEnd: time 4.018e-06/0.2403, allocations: 0 / 380.9 MB, free: 236 kB / 318.1 MB Notification: Performance of Transformations before backend: time 4.764e-05/0.2403, allocations: 4 kB / 380.9 MB, free: 232 kB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 154 * Number of variables: 154 Notification: Performance of Generate backend data structure: time 0.3114/0.5518, allocations: 3.223 MB / 384.1 MB, free: 52.88 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.785e-05/0.5519, allocations: 13.19 kB / 384.1 MB, free: 52.87 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001022/0.5529, allocations: 399.6 kB / 384.5 MB, free: 52.67 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005765/0.5587, allocations: 2.447 MB / 387 MB, free: 51.86 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.956e-05/0.5588, allocations: 37.78 kB / 387 MB, free: 51.85 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002162/0.559, allocations: 59.56 kB / 387 MB, free: 51.85 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002113/0.5611, allocations: 0.7547 MB / 387.8 MB, free: 51.69 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.207e-05/0.5612, allocations: 1.531 kB / 387.8 MB, free: 51.69 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.544e-05/0.5613, allocations: 28.16 kB / 387.8 MB, free: 51.67 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.107e-05/0.5613, allocations: 22.66 kB / 387.9 MB, free: 51.67 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002166/0.5635, allocations: 0.8594 MB / 388.7 MB, free: 51.45 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008509/0.572, allocations: 3.078 MB / 391.8 MB, free: 49.99 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001489/0.5735, allocations: 0.6167 MB / 392.4 MB, free: 49.7 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001237/0.5748, allocations: 0.6736 MB / 393.1 MB, free: 49.34 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03034/0.6051, allocations: 30.23 MB / 423.3 MB, free: 19.61 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000773/0.606, allocations: 381.6 kB / 423.7 MB, free: 19.23 MB / 318.1 MB Notification: Performance of pre-optimization done (n=49): time 2.846e-06/0.606, allocations: 3.5 kB / 423.7 MB, free: 19.23 MB / 318.1 MB Notification: Performance of matching and sorting (n=49): time 0.002709/0.6087, allocations: 1.162 MB / 424.8 MB, free: 18.06 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.708e-05/0.6088, allocations: 62.41 kB / 424.9 MB, free: 17.99 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003447/0.6122, allocations: 2.956 MB / 427.9 MB, free: 15.03 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 5.576e-05/0.6123, allocations: 29.7 kB / 427.9 MB, free: 14.99 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001133/0.6134, allocations: 1.498 MB / 429.4 MB, free: 13.49 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001514/0.6136, allocations: 165.5 kB / 429.5 MB, free: 13.33 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001133/0.6137, allocations: 69.69 kB / 429.6 MB, free: 13.25 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001153/0.6138, allocations: 341.2 kB / 430 MB, free: 12.92 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000532/0.6144, allocations: 261.7 kB / 430.2 MB, free: 12.66 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007235/0.6151, allocations: 0.6287 MB / 430.8 MB, free: 11.86 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001325/0.6165, allocations: 0.9407 MB / 431.8 MB, free: 10.76 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.296e-06/0.6165, allocations: 0 / 431.8 MB, free: 10.76 MB / 318.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.002441/0.6189, allocations: 1.271 MB / 433 MB, free: 9.477 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.404e-05/0.619, allocations: 12 kB / 433.1 MB, free: 9.465 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.696e-05/0.6191, allocations: 80 kB / 433.1 MB, free: 9.387 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.094e-05/0.6191, allocations: 27.88 kB / 433.2 MB, free: 9.359 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006998/0.6198, allocations: 216.7 kB / 433.4 MB, free: 9.148 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.289e-05/0.6199, allocations: 23.92 kB / 433.4 MB, free: 9.125 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001744/0.6216, allocations: 111.1 kB / 433.5 MB, free: 9.016 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001188/0.6217, allocations: 72 kB / 433.6 MB, free: 8.945 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 56 * Number of states: 0 () * Number of discrete variables: 14 (vin.counter,$PRE.vin.counter,v.counter,$PRE.v.counter,v.counter2,$PRE.v.counter2,v.T0,$PRE.v.T0,vin.counter2,$PRE.vin.counter2,vin.T0,$PRE.vin.T0,$whenCondition1,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (102): * Single equations (assignments): 98 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * 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.0009394/0.6227, allocations: 437 kB / 434 MB, free: 8.512 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003801/0.6231, allocations: 387.3 kB / 434.4 MB, free: 8.129 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00276/0.6259, allocations: 1.242 MB / 435.6 MB, free: 6.898 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.196e-05/0.6259, allocations: 7.938 kB / 435.6 MB, free: 6.891 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.087e-06/0.6259, allocations: 0 / 435.6 MB, free: 6.891 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.602e-06/0.6259, allocations: 0 / 435.6 MB, free: 6.891 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003575/0.6295, allocations: 2.142 MB / 437.8 MB, free: 4.688 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.673e-05/0.6296, allocations: 71.94 kB / 437.8 MB, free: 4.617 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004723/0.6301, allocations: 103.9 kB / 437.9 MB, free: 4.516 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.814e-06/0.6301, allocations: 4.062 kB / 437.9 MB, free: 4.512 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.242e-05/0.6301, allocations: 31.98 kB / 438 MB, free: 4.48 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.418e-06/0.6301, allocations: 7.938 kB / 438 MB, free: 4.473 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.156e-06/0.6302, allocations: 0 / 438 MB, free: 4.473 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002092/0.6322, allocations: 1.366 MB / 439.4 MB, free: 3.078 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009794/0.6332, allocations: 485.5 kB / 439.8 MB, free: 2.582 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002716/0.6335, allocations: 12 kB / 439.8 MB, free: 2.57 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000654/0.6342, allocations: 44.02 kB / 439.9 MB, free: 2.527 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001778/0.6344, allocations: 55.95 kB / 439.9 MB, free: 2.473 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.619e-05/0.6345, allocations: 43.92 kB / 440 MB, free: 2.43 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0023/0.6368, allocations: 1.916 MB / 441.9 MB, free: 0.5156 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.6368, allocations: 0 / 441.9 MB, free: 0.5156 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001722/0.6385, allocations: 0.5934 MB / 442.5 MB, free: 15.92 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (c1.vinternal,c2.vinternal) * Number of discrete variables: 8 ($whenCondition2,$whenCondition1,vin.T0,vin.counter,vin.counter2,v.T0,v.counter,v.counter2) * Number of discrete states: 4 (vin.counter2,v.counter2,vin.counter,v.counter) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (42): * Single equations (assignments): 32 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 6 * 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.001533/0.64, allocations: 0.7708 MB / 443.3 MB, free: 15.29 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001944/0.642, allocations: 0.8495 MB / 444.1 MB, free: 14.42 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 5.571e-06/0.642, allocations: 3.938 kB / 444.1 MB, free: 14.42 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008475/0.6429, allocations: 467.5 kB / 444.6 MB, free: 13.94 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002567/0.6455, allocations: 490.2 kB / 445 MB, free: 13.46 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008849/0.6543, allocations: 5.365 MB / 450.4 MB, free: 8.051 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001397/0.6558, allocations: 1.669 MB / 452.1 MB, free: 6.355 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004641/0.6563, allocations: 151.4 kB / 452.2 MB, free: 6.207 MB / 334.1 MB Notification: Performance of SimCode: time 1.373e-06/0.6563, allocations: 0 / 452.2 MB, free: 6.207 MB / 334.1 MB Notification: Performance of Templates: time 0.08425/0.7405, allocations: 37.2 MB / 489.4 MB, free: 0.9688 MB / 366.1 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.makefile make -j1 -f Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.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.Electrical.Spice3.Examples.InvertersApartRecordCalcHelperMain.o OMCppModelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersApartRecordCalcHelperMain.cpp clang: error: no such file or directory: 'NOTFOUND' make: *** [: OMCppModelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersApartRecordCalcHelperMain.o] Error 1