Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Electrical.Analog.Examples.SwitchWithArc,tolerance=1e-06,outputFormat="mat",numberOfIntervals=16000,variableFilter="time|inductor1.i|inductor2.i",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc") translateModel(Modelica.Electrical.Analog.Examples.SwitchWithArc,tolerance=1e-06,outputFormat="mat",numberOfIntervals=16000,variableFilter="time|inductor1.i|inductor2.i",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009302/0.0009303, allocations: 91.02 kB / 17.63 MB, free: 5.875 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001079/0.001079, allocations: 201.9 kB / 18.54 MB, free: 5.172 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.593/1.593, allocations: 227.3 MB / 246.6 MB, free: 10.29 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002892/0.0002892, allocations: 8 kB / 307.3 MB, free: 1.406 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1207/0.121, allocations: 51.49 MB / 358.8 MB, free: 13.91 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SwitchWithArc): time 0.003379/0.1245, allocations: 2.452 MB / 361.2 MB, free: 11.45 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001342/0.1259, allocations: 0.7288 MB / 362 MB, free: 10.71 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001461/0.126, allocations: 4 kB / 362 MB, free: 10.71 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001499/0.1262, allocations: 43.62 kB / 362 MB, free: 10.67 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001623/0.1264, allocations: 75.38 kB / 362.1 MB, free: 10.59 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003349/0.1267, allocations: 83.84 kB / 362.2 MB, free: 10.51 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003502/0.1271, allocations: 338.5 kB / 362.5 MB, free: 10.18 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002159/0.1273, allocations: 90.31 kB / 362.6 MB, free: 10.09 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001427/0.1275, allocations: 115.6 kB / 362.7 MB, free: 9.977 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001879/0.1276, allocations: 139.3 kB / 362.8 MB, free: 9.84 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.847e-05/0.1277, allocations: 16 kB / 362.9 MB, free: 9.824 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.097e-05/0.1277, allocations: 16 kB / 362.9 MB, free: 9.809 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 5.465e-05/0.1278, allocations: 47.83 kB / 362.9 MB, free: 9.762 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 8.621e-05/0.1279, allocations: 85.52 kB / 363 MB, free: 9.672 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00025/0.1282, allocations: 267.5 kB / 363.3 MB, free: 9.41 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.941e-06/0.1282, allocations: 0 / 363.3 MB, free: 9.41 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.295e-06/0.1282, allocations: 0 / 363.3 MB, free: 9.41 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.442e-06/0.1282, allocations: 0 / 363.3 MB, free: 9.41 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: 71 * Number of variables: 71 Notification: Performance of Generate backend data structure: time 0.0009291/0.1291, allocations: 0.5627 MB / 363.8 MB, free: 8.797 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.518e-05/0.1292, allocations: 8.031 kB / 363.8 MB, free: 8.789 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.125e-05/0.1293, allocations: 39.62 kB / 363.9 MB, free: 8.75 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00032/0.1296, allocations: 255.1 kB / 364.1 MB, free: 8.461 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001045/0.1297, allocations: 76.05 kB / 364.2 MB, free: 8.375 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.723e-05/0.1298, allocations: 35.95 kB / 364.2 MB, free: 8.34 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005447/0.1303, allocations: 297.8 kB / 364.5 MB, free: 8.039 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.37e-05/0.1303, allocations: 0 / 364.5 MB, free: 8.039 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.511e-05/0.1304, allocations: 12 kB / 364.5 MB, free: 8.027 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.417e-06/0.1304, allocations: 4 kB / 364.5 MB, free: 8.023 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003716/0.1308, allocations: 190.1 kB / 364.7 MB, free: 7.836 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00175/0.1325, allocations: 1.139 MB / 365.9 MB, free: 6.613 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000298/0.1328, allocations: 165.3 kB / 366 MB, free: 6.445 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001321/0.133, allocations: 76.83 kB / 366.1 MB, free: 6.367 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.579e-05/0.133, allocations: 8 kB / 366.1 MB, free: 6.359 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002928/0.1333, allocations: 151.2 kB / 366.3 MB, free: 6.195 MB / 302.1 MB Notification: Performance of pre-optimization done (n=21): time 1.543e-06/0.1333, allocations: 3.938 kB / 366.3 MB, free: 6.191 MB / 302.1 MB Notification: Performance of matching and sorting (n=21): time 0.0009648/0.1343, allocations: 397.3 kB / 366.7 MB, free: 5.777 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.84e-05/0.1344, allocations: 110.8 kB / 366.8 MB, free: 5.645 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002117/0.1346, allocations: 225 kB / 367 MB, free: 5.414 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.72e-05/0.1346, allocations: 33.7 kB / 367 MB, free: 5.375 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001319/0.1348, allocations: 180.1 kB / 367.2 MB, free: 5.195 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.646e-05/0.1349, allocations: 71.09 kB / 367.3 MB, free: 5.125 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.247e-05/0.1349, allocations: 4 kB / 367.3 MB, free: 5.121 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001334/0.135, allocations: 326.8 kB / 367.6 MB, free: 4.793 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001157/0.1351, allocations: 67.97 kB / 367.6 MB, free: 4.727 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001721/0.1353, allocations: 144.7 kB / 367.8 MB, free: 4.551 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001335/0.1354, allocations: 73.19 kB / 367.9 MB, free: 4.48 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.037e-06/0.1355, allocations: 4 kB / 367.9 MB, free: 4.477 MB / 302.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0004154/0.1359, allocations: 274.5 kB / 368.1 MB, free: 4.203 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.038e-05/0.1359, allocations: 8 kB / 368.1 MB, free: 4.195 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.363e-06/0.1359, allocations: 0 / 368.1 MB, free: 4.195 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00027/0.1362, allocations: 68.92 kB / 368.2 MB, free: 4.125 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002093/0.1364, allocations: 47.92 kB / 368.3 MB, free: 4.078 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001334/0.1378, allocations: 1.408 MB / 369.7 MB, free: 2.539 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002046/0.138, allocations: 39.77 kB / 369.7 MB, free: 2.5 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.137e-05/0.138, allocations: 12 kB / 369.7 MB, free: 2.488 MB / 302.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: 10 ($whenCondition2,$whenCondition1,$PRE.booleanPulse.pulseStart,booleanPulse.pulseStart,$PRE.switch2.off,switch2.off,$PRE.switch2.quenched,switch2.quenched,$PRE.switch2.tSwitch,switch2.tSwitch) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (34): * Single equations (assignments): 33 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0001607/0.1382, allocations: 155.4 kB / 369.9 MB, free: 2.328 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.469e-05/0.1382, allocations: 27.67 kB / 369.9 MB, free: 2.301 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.929e-05/0.1383, allocations: 22.19 kB / 369.9 MB, free: 2.277 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.874e-06/0.1383, allocations: 0 / 369.9 MB, free: 2.277 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.867e-06/0.1383, allocations: 7.984 kB / 369.9 MB, free: 2.27 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.028e-06/0.1383, allocations: 0 / 369.9 MB, free: 2.27 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003177/0.1386, allocations: 317.5 kB / 370.2 MB, free: 1.91 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.666e-06/0.1386, allocations: 3.938 kB / 370.2 MB, free: 1.906 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001659/0.1388, allocations: 39.88 kB / 370.3 MB, free: 1.867 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001727/0.139, allocations: 56.81 kB / 370.3 MB, free: 1.809 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.645e-05/0.139, allocations: 4 kB / 370.3 MB, free: 1.805 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001096/0.1401, allocations: 1.323 MB / 371.7 MB, free: 352 kB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.132e-06/0.1401, allocations: 0 / 371.7 MB, free: 352 kB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.3021/0.4422, allocations: 343.2 kB / 372 MB, free: 19.36 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003097/0.4426, allocations: 106.8 kB / 372.1 MB, free: 19.27 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001003/0.4427, allocations: 7.953 kB / 372.1 MB, free: 19.27 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002988/0.443, allocations: 21.8 kB / 372.1 MB, free: 19.27 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001749/0.4432, allocations: 30.89 kB / 372.2 MB, free: 19.27 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.091e-05/0.4433, allocations: 8.594 kB / 372.2 MB, free: 19.27 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003221/0.4436, allocations: 159.6 kB / 372.3 MB, free: 19.19 MB / 302.1 MB Notification: Performance of sort global known variables: time 6.11e-07/0.4436, allocations: 0 / 372.3 MB, free: 19.19 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0007842/0.4444, allocations: 82.97 kB / 372.4 MB, free: 19.19 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (inductor1.i,inductor2.i) * Number of discrete variables: 6 ($whenCondition2,$whenCondition1,booleanPulse.pulseStart,switch2.off,switch2.quenched,switch2.tSwitch) * Number of discrete states: 2 (switch2.quenched,switch2.off) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (20): * Single equations (assignments): 17 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002035/0.4446, allocations: 101.9 kB / 372.5 MB, free: 19.1 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0007258/0.4454, allocations: 286.1 kB / 372.8 MB, free: 19 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.085e-06/0.4454, allocations: 0 / 372.8 MB, free: 19 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002882/0.4457, allocations: 190.8 kB / 373 MB, free: 18.89 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003977/0.4461, allocations: 47.48 kB / 373 MB, free: 18.89 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002134/0.4482, allocations: 0.8408 MB / 373.9 MB, free: 18.49 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004114/0.4487, allocations: 0.759 MB / 374.6 MB, free: 17.79 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.338e-05/0.4488, allocations: 25.06 kB / 374.6 MB, free: 17.78 MB / 302.1 MB Notification: Performance of SimCode: time 8.12e-07/0.4488, allocations: 4 kB / 374.6 MB, free: 17.78 MB / 302.1 MB Notification: Performance of Templates: time 0.01237/0.4611, allocations: 4.137 MB / 378.8 MB, free: 17.5 MB / 302.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc.makefile make -j1 -f Modelica_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc.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_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArcCalcHelperMain.o OMCppModelica_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArcCalcHelperMain.cpp clang: error: no such file or directory: 'NOTFOUND' make: *** [: OMCppModelica_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArcCalcHelperMain.o] Error 1