Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.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.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke,tolerance=1e-07,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|advancedSolenoid.armature.stopper_xMax.v_rel|advancedSolenoid.c_par1.v|advancedSolenoid.c_par2.v|advancedSolenoid.coil1.Phi|advancedSolenoid.coil2.Phi|advancedSolenoid.x|simpleSolenoid.armature.stopper_xMax.v_rel|simpleSolenoid.coil.Phi|simpleSolenoid.x",fileNamePrefix="Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke") translateModel(Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke,tolerance=1e-07,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|advancedSolenoid.armature.stopper_xMax.v_rel|advancedSolenoid.c_par1.v|advancedSolenoid.c_par2.v|advancedSolenoid.coil1.Phi|advancedSolenoid.coil2.Phi|advancedSolenoid.x|simpleSolenoid.armature.stopper_xMax.v_rel|simpleSolenoid.coil.Phi|simpleSolenoid.x",fileNamePrefix="Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001594/0.001594, allocations: 108.2 kB / 17.81 MB, free: 5.559 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.00269/0.00269, allocations: 197.9 kB / 18.73 MB, free: 4.641 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.196/2.196, allocations: 205.1 MB / 224.6 MB, free: 12.48 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.001233/0.001233, allocations: 55.92 kB / 280.6 MB, free: 3.574 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1389/0.1402, allocations: 46.62 MB / 327.3 MB, free: 4.883 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke): time 0.02152/0.1618, allocations: 10.88 MB / 338.1 MB, free: 9.941 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0123/0.1741, allocations: 3.492 MB / 341.6 MB, free: 6.434 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004362/0.1785, allocations: 39.88 kB / 341.7 MB, free: 6.395 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01203/0.1907, allocations: 8.133 MB / 349.8 MB, free: 14.25 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01082/0.2016, allocations: 4.559 MB / 354.4 MB, free: 9.676 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004392/0.206, allocations: 0.8234 MB / 355.2 MB, free: 8.852 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.01187/0.2179, allocations: 5.101 MB / 360.3 MB, free: 3.738 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00331/0.2213, allocations: 0.7574 MB / 361 MB, free: 2.953 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.008015/0.2293, allocations: 2.591 MB / 363.6 MB, free: 364 kB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01013/0.2395, allocations: 4.947 MB / 368.6 MB, free: 11.39 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002017/0.2416, allocations: 172 kB / 368.7 MB, free: 11.22 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002379/0.244, allocations: 203.9 kB / 368.9 MB, free: 11.02 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002915/0.2469, allocations: 1.779 MB / 370.7 MB, free: 9.23 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006127/0.2531, allocations: 2.608 MB / 373.3 MB, free: 6.602 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008693/0.2618, allocations: 5.563 MB / 378.9 MB, free: 1.027 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.677e-06/0.2619, allocations: 0 / 378.9 MB, free: 1.027 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.865e-06/0.2619, allocations: 0 / 378.9 MB, free: 1.027 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0004689/0.2624, allocations: 0 / 378.9 MB, free: 1.027 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: 528 * Number of variables: 528 Notification: Performance of Generate backend data structure: time 0.3669/0.6293, allocations: 7.646 MB / 386.5 MB, free: 49.16 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 8.68e-05/0.6294, allocations: 9.219 kB / 386.6 MB, free: 49.16 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002983/0.6324, allocations: 0.8499 MB / 387.4 MB, free: 48.69 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006969/0.6394, allocations: 3.152 MB / 390.6 MB, free: 46.8 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002411/0.6397, allocations: 158.2 kB / 390.7 MB, free: 46.72 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004538/0.6402, allocations: 204.5 kB / 390.9 MB, free: 46.66 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006356/0.6465, allocations: 2.11 MB / 393 MB, free: 45.75 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.219e-05/0.6466, allocations: 7.172 kB / 393 MB, free: 45.75 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002089/0.6468, allocations: 88.28 kB / 393.1 MB, free: 45.68 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.882e-05/0.6469, allocations: 54.88 kB / 393.2 MB, free: 45.68 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00513/0.6521, allocations: 1.896 MB / 395.1 MB, free: 44.99 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02188/0.674, allocations: 8.945 MB / 404 MB, free: 38.79 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004021/0.6781, allocations: 2.334 MB / 406.3 MB, free: 36.6 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002405/0.6805, allocations: 1.372 MB / 407.7 MB, free: 35.21 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001503/0.6807, allocations: 45.33 kB / 407.8 MB, free: 35.18 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002323/0.683, allocations: 1.156 MB / 408.9 MB, free: 33.98 MB / 318.1 MB Notification: Performance of pre-optimization done (n=242): time 1.006e-05/0.683, allocations: 4 kB / 408.9 MB, free: 33.98 MB / 318.1 MB Notification: Performance of matching and sorting (n=367): time 0.08092/0.764, allocations: 22.79 MB / 431.7 MB, free: 10.9 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.02744/0.7915, allocations: 13.03 MB / 444.7 MB, free: 13.49 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02354/0.8151, allocations: 14.89 MB / 459.6 MB, free: 14.66 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.001146/0.8163, allocations: 85.7 kB / 459.7 MB, free: 14.57 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.004459/0.8207, allocations: 3.725 MB / 463.4 MB, free: 10.84 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00242/0.8232, allocations: 1.213 MB / 464.7 MB, free: 9.609 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001348/0.8245, allocations: 0.5117 MB / 465.2 MB, free: 9.09 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002006/0.8247, allocations: 309 kB / 465.5 MB, free: 8.785 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002964/0.8277, allocations: 1.256 MB / 466.7 MB, free: 7.527 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00313/0.8309, allocations: 1.63 MB / 468.4 MB, free: 5.816 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006104/0.837, allocations: 2.992 MB / 471.3 MB, free: 2.758 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.418e-05/0.837, allocations: 0 / 471.3 MB, free: 2.758 MB / 350.1 MB Notification: Performance of matching and sorting (n=431) (initialization): time 0.01486/0.8519, allocations: 5.2 MB / 476.5 MB, free: 13.52 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.685e-05/0.852, allocations: 8 kB / 476.6 MB, free: 13.51 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.36e-05/0.8521, allocations: 4.781 kB / 476.6 MB, free: 13.5 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00672/0.8588, allocations: 1.385 MB / 477.9 MB, free: 12.09 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003454/0.8623, allocations: 0.5422 MB / 478.5 MB, free: 11.55 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03503/0.8974, allocations: 21.93 MB / 0.4887 GB, free: 4.406 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005533/0.903, allocations: 135.9 kB / 0.4888 GB, free: 4.273 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007213/0.9037, allocations: 108 kB / 0.4889 GB, free: 4.168 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 22 * Number of states: 0 () * Number of discrete variables: 9 ($PRE.comparisonWithFEA.nextTimeEvent,$whenCondition1,comparisonWithFEA.nextTimeEventScaled,$PRE.comparisonWithFEA.nextTimeEventScaled,comparisonWithFEA.nextTimeEvent,simpleSolenoid.armature.stopper_xMin.contact,simpleSolenoid.armature.stopper_xMax.contact,advancedSolenoid.armature.stopper_xMin.contact,advancedSolenoid.armature.stopper_xMax.contact) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (309): * Single equations (assignments): 300 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 9 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 7 systems {(1,3,100.0%), (1,3,100.0%), (1,4,100.0%), (1,4,100.0%), (1,3,100.0%), (1,5,100.0%), (1,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(2,43), (3,50)} Notification: Performance of prepare postOptimizeDAE: time 0.006035/0.9098, allocations: 2.184 MB / 0.491 GB, free: 1.973 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002107/0.9119, allocations: 0.8175 MB / 0.4918 GB, free: 1.145 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01377/0.9257, allocations: 5.212 MB / 0.4969 GB, free: 11.88 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.697e-05/0.9258, allocations: 43.94 kB / 0.497 GB, free: 11.83 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.914e-05/0.9258, allocations: 4 kB / 0.497 GB, free: 11.83 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.603e-05/0.9259, allocations: 23.92 kB / 0.497 GB, free: 11.8 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03454/0.9604, allocations: 11.09 MB / 0.5078 GB, free: 0.5977 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.041e-05/0.9605, allocations: 0 / 0.5078 GB, free: 0.5977 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003015/0.9635, allocations: 467.4 kB / 0.5083 GB, free: 144 kB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00649/0.9701, allocations: 1.334 MB / 0.5096 GB, free: 14.77 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006582/0.9708, allocations: 71.97 kB / 0.5096 GB, free: 14.7 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.3788/1.35, allocations: 20.01 MB / 0.5292 GB, free: 125.7 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0309/1.38, allocations: 11.41 MB / 0.5403 GB, free: 120.9 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01723/1.398, allocations: 6.947 MB / 0.5471 GB, free: 118 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002934/1.401, allocations: 0.7495 MB / 0.5478 GB, free: 117.9 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002089/1.403, allocations: 65.25 kB / 0.5479 GB, free: 117.9 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003898/1.407, allocations: 115.5 kB / 0.548 GB, free: 117.8 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001178/1.408, allocations: 268.8 kB / 0.5483 GB, free: 117.8 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003393/1.408, allocations: 98.41 kB / 0.5484 GB, free: 117.7 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.01916/1.428, allocations: 11.12 MB / 0.5592 GB, free: 110.9 MB / 414.1 MB Notification: Performance of sort global known variables: time 4.41e-07/1.428, allocations: 0 / 0.5592 GB, free: 110.9 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.009579/1.437, allocations: 1.077 MB / 0.5603 GB, free: 109.8 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 9 (advancedSolenoid.x,advancedSolenoid.coil1.i,advancedSolenoid.armature.stopper_xMin.v_rel,advancedSolenoid.coil2.i,advancedSolenoid.c_par1.v,advancedSolenoid.c_par2.v,$STATESET1.x,simpleSolenoid.x,simpleSolenoid.armature.stopper_xMin.v_rel) * Number of discrete variables: 7 (advancedSolenoid.armature.stopper_xMax.contact,advancedSolenoid.armature.stopper_xMin.contact,simpleSolenoid.armature.stopper_xMax.contact,simpleSolenoid.armature.stopper_xMin.contact,$whenCondition1,comparisonWithFEA.nextTimeEvent,comparisonWithFEA.nextTimeEventScaled) * Number of discrete states: 2 (comparisonWithFEA.nextTimeEventScaled,comparisonWithFEA.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (253): * Single equations (assignments): 242 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 9 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 7 systems {(1,2,100.0%), (1,2,100.0%), (1,4,100.0%), (1,5,100.0%), (1,3,100.0%), (1,2,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(3,49), (4,42)} Notification: Performance of Backend phase and start with SimCode phase: time 0.002479/1.44, allocations: 0.5018 MB / 0.5608 GB, free: 109.4 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.01128/1.451, allocations: 4.799 MB / 0.5655 GB, free: 104.9 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 9.638e-06/1.451, allocations: 0 / 0.5655 GB, free: 104.9 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.006428/1.458, allocations: 3.271 MB / 0.5686 GB, free: 101.6 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008468/1.466, allocations: 0.5288 MB / 0.5692 GB, free: 101.1 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03821/1.504, allocations: 20.55 MB / 0.5892 GB, free: 80.66 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008143/1.513, allocations: 4.016 MB / 0.5932 GB, free: 76.6 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001911/1.515, allocations: 199.3 kB / 0.5933 GB, free: 76.41 MB / 414.1 MB Notification: Performance of SimCode: time 2.735e-06/1.515, allocations: 0 / 0.5933 GB, free: 76.41 MB / 414.1 MB Notification: Performance of Templates: time 1.812/3.326, allocations: 0.5417 GB / 1.135 GB, free: 49.46 MB / 462.1 MB make -j1 -f Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.makefile make -j1 -f Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.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.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStrokeCalcHelperMain.o OMCppModelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStrokeCalcHelperMain.cpp clang: error: no such file or directory: 'NOTFOUND' make: *** [: OMCppModelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStrokeCalcHelperMain.o] Error 1