Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) Running command: translateModel(Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|magFluxSensor.Phi|voltageSensor.v",fileNamePrefix="Modelica_trunk_cpp_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap") translateModel(Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|magFluxSensor.Phi|voltageSensor.v",fileNamePrefix="Modelica_trunk_cpp_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00158/0.001581, allocations: 195.7 kB / 18.07 MB, free: 3.762 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.257/1.257, allocations: 226.5 MB / 245.4 MB, free: 6.488 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007934/0.0007932, allocations: 108.8 kB / 297.4 MB, free: 6.688 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002029/0.000203, allocations: 8 kB / 357.4 MB, free: 10.76 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1879/0.1881, allocations: 51.3 MB / 408.7 MB, free: 27.71 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08435/0.2725, allocations: 81.7 MB / 490.4 MB, free: 9.906 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001921/0.2727, allocations: 83.95 kB / 490.4 MB, free: 9.824 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0215/0.2943, allocations: 8.365 MB / 498.8 MB, free: 1.441 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.034e-06/0.2943, allocations: 0 / 498.8 MB, free: 1.441 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.282e-05/0.2943, allocations: 8 kB / 498.8 MB, free: 1.434 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 79 * Number of variables: 79 Notification: Performance of Generate backend data structure: time 0.0009448/0.2953, allocations: 0.5895 MB / 499.4 MB, free: 0.793 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.417e-05/0.2953, allocations: 8.031 kB / 499.4 MB, free: 0.7852 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.559e-05/0.2954, allocations: 36.56 kB / 499.4 MB, free: 0.75 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003102/0.2957, allocations: 280.7 kB / 499.7 MB, free: 448 kB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.669e-05/0.2957, allocations: 32.95 kB / 499.8 MB, free: 416 kB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.826e-05/0.2958, allocations: 32.31 kB / 499.8 MB, free: 384 kB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005524/0.2963, allocations: 294.6 kB / 0.4884 GB, free: 84 kB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.122e-05/0.2964, allocations: 4.188 kB / 0.4884 GB, free: 80 kB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.335e-05/0.2964, allocations: 15.94 kB / 0.4884 GB, free: 64 kB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.684e-06/0.2964, allocations: 8 kB / 0.4884 GB, free: 56 kB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006105/0.297, allocations: 266.5 kB / 0.4886 GB, free: 15.8 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001591/0.2986, allocations: 1.135 MB / 0.4897 GB, free: 14.56 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003512/0.299, allocations: 150.5 kB / 0.4899 GB, free: 14.4 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001937/0.2992, allocations: 76.81 kB / 0.49 GB, free: 14.32 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.966e-05/0.2992, allocations: 7.938 kB / 0.49 GB, free: 14.32 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.789e-05/0.2993, allocations: 30.56 kB / 0.49 GB, free: 14.28 MB / 378.7 MB Notification: Performance of pre-optimization done (n=17): time 1.462e-06/0.2993, allocations: 0 / 0.49 GB, free: 14.28 MB / 378.7 MB Notification: Performance of matching and sorting (n=22): time 0.001953/0.3012, allocations: 0.6747 MB / 0.4907 GB, free: 13.59 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.252e-05/0.3013, allocations: 51.41 kB / 0.4907 GB, free: 13.53 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002468/0.3015, allocations: 270.5 kB / 0.491 GB, free: 13.26 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.9e-05/0.3016, allocations: 25.7 kB / 0.491 GB, free: 13.23 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001157/0.3017, allocations: 219.5 kB / 0.4912 GB, free: 13.01 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.412e-05/0.3017, allocations: 82.89 kB / 0.4913 GB, free: 12.93 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.537e-05/0.3018, allocations: 4 kB / 0.4913 GB, free: 12.92 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 9.944e-05/0.3019, allocations: 338.8 kB / 0.4916 GB, free: 12.58 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002765/0.3022, allocations: 103.9 kB / 0.4917 GB, free: 12.48 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003188/0.3025, allocations: 208.2 kB / 0.4919 GB, free: 12.23 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005938/0.3031, allocations: 325.1 kB / 0.4922 GB, free: 11.87 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.124e-06/0.3031, allocations: 0 / 0.4922 GB, free: 11.87 MB / 378.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.000863/0.304, allocations: 417.3 kB / 0.4926 GB, free: 11.45 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.529e-05/0.304, allocations: 8 kB / 0.4926 GB, free: 11.45 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.991e-06/0.304, allocations: 0 / 0.4926 GB, free: 11.45 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002227/0.3042, allocations: 53.69 kB / 0.4927 GB, free: 11.39 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003118/0.3046, allocations: 83.83 kB / 0.4927 GB, free: 11.3 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001649/0.3062, allocations: 2.643 MB / 0.4953 GB, free: 8.391 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002547/0.3065, allocations: 32.11 kB / 0.4954 GB, free: 8.359 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.373e-05/0.3065, allocations: 15.98 kB / 0.4954 GB, free: 8.344 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 14 * 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 (37): * Single equations (assignments): 35 * 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: 2 * 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%) 2} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001332/0.3067, allocations: 146.4 kB / 0.4955 GB, free: 8.191 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.72e-05/0.3067, allocations: 23.72 kB / 0.4955 GB, free: 8.168 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.666e-05/0.3068, allocations: 42.11 kB / 0.4956 GB, free: 8.129 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.134e-06/0.3068, allocations: 0 / 0.4956 GB, free: 8.129 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.801e-06/0.3068, allocations: 4 kB / 0.4956 GB, free: 8.125 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.216e-06/0.3068, allocations: 0 / 0.4956 GB, free: 8.125 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003202/0.3071, allocations: 329.4 kB / 0.4959 GB, free: 7.754 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.964e-06/0.3071, allocations: 0 / 0.4959 GB, free: 7.754 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002309/0.3074, allocations: 39.97 kB / 0.4959 GB, free: 7.715 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001468/0.3075, allocations: 61.61 kB / 0.496 GB, free: 7.648 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.76e-05/0.3076, allocations: 11.88 kB / 0.496 GB, free: 7.637 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00154/0.3091, allocations: 2.633 MB / 0.4986 GB, free: 4.742 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.182e-06/0.3091, allocations: 4 kB / 0.4986 GB, free: 4.738 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006643/0.3098, allocations: 388.6 kB / 0.4989 GB, free: 4.336 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.851e-05/0.3099, allocations: 104.8 kB / 0.499 GB, free: 4.215 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.793e-05/0.3099, allocations: 4 kB / 0.4991 GB, free: 4.211 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002041/0.3101, allocations: 23.98 kB / 0.4991 GB, free: 4.188 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.697e-05/0.3102, allocations: 27.91 kB / 0.4991 GB, free: 4.16 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.233e-05/0.3102, allocations: 4 kB / 0.4991 GB, free: 4.156 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001651/0.3104, allocations: 186 kB / 0.4993 GB, free: 3.973 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.41e-07/0.3104, allocations: 0 / 0.4993 GB, free: 3.973 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0003568/0.3107, allocations: 72 kB / 0.4994 GB, free: 3.902 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 simulation (18): * Single equations (assignments): 16 * 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: 2 * 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%) 2} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001172/0.3109, allocations: 107.2 kB / 0.4995 GB, free: 3.789 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0008578/0.3117, allocations: 0.4978 MB / 0.4999 GB, free: 3.266 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.374e-06/0.3117, allocations: 0 / 0.4999 GB, free: 3.266 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000463/0.3122, allocations: 360.2 kB / 0.5003 GB, free: 2.891 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003264/0.3126, allocations: 28.25 kB / 0.5003 GB, free: 2.867 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009454/0.3135, allocations: 0.6988 MB / 0.501 GB, free: 2.133 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002658/0.3138, allocations: 0.7713 MB / 0.5017 GB, free: 1.336 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.158e-05/0.3139, allocations: 31.42 kB / 0.5018 GB, free: 1.305 MB / 378.7 MB Notification: Performance of SimCode: time 3.81e-07/0.3139, allocations: 0 / 0.5018 GB, free: 1.305 MB / 378.7 MB Notification: Performance of Templates: time 0.1443/0.4582, allocations: 5.846 MB / 0.5075 GB, free: 96.4 MB / 378.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.makefile (rm -f Modelica_trunk_cpp_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe >> ../files/Modelica_trunk_cpp_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.sim & ./Modelica_trunk_cpp_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FluxTubes/Examples/BasicExamples/ToroidalCoreAirgap/ToroidalCoreAirgap.csv","../files/Modelica_trunk_cpp_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches