Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.CompareTransformers.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.Electrical.Analog.Examples.CompareTransformers,tolerance=1e-06,outputFormat="mat",numberOfIntervals=100000,variableFilter="time|basicTransformer.i1|basicTransformer.i2|inductor22.i",fileNamePrefix="Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.CompareTransformers") translateModel(Modelica.Electrical.Analog.Examples.CompareTransformers,tolerance=1e-06,outputFormat="mat",numberOfIntervals=100000,variableFilter="time|basicTransformer.i1|basicTransformer.i2|inductor22.i",fileNamePrefix="Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.CompareTransformers") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001412/0.001412, allocations: 195.7 kB / 18.07 MB, free: 3.766 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.3 MB, free: 6.492 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007225/0.0007225, allocations: 94.69 kB / 297.4 MB, free: 6.672 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002056/0.0002056, allocations: 11.98 kB / 357.4 MB, free: 10.73 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1918/0.192, allocations: 51.29 MB / 408.7 MB, free: 27.69 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08741/0.2795, allocations: 81.47 MB / 490.1 MB, free: 10.1 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002493/0.2798, allocations: 72.53 kB / 490.2 MB, free: 10.03 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02127/0.3011, allocations: 8.483 MB / 498.7 MB, free: 1.512 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.573e-06/0.3011, allocations: 0 / 498.7 MB, free: 1.512 MB / 362.7 MB Notification: Performance of Transformations before backend: time 2.284e-05/0.3011, allocations: 12 kB / 498.7 MB, free: 1.5 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: 123 * Number of variables: 123 Notification: Performance of Generate backend data structure: time 0.001181/0.3023, allocations: 0.7793 MB / 499.5 MB, free: 0.668 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.661e-05/0.3024, allocations: 8.031 kB / 499.5 MB, free: 0.6602 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002733/0.3026, allocations: 92.25 kB / 499.6 MB, free: 0.5703 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004704/0.3031, allocations: 363.7 kB / 499.9 MB, free: 184 kB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.125e-05/0.3032, allocations: 37.38 kB / 500 MB, free: 148 kB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.705e-05/0.3032, allocations: 52.28 kB / 0.4883 GB, free: 96 kB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007758/0.304, allocations: 479.7 kB / 0.4888 GB, free: 15.61 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.341e-05/0.304, allocations: 416 / 0.4888 GB, free: 15.61 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.944e-05/0.3041, allocations: 23.94 kB / 0.4888 GB, free: 15.59 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.3e-05/0.3041, allocations: 19.94 kB / 0.4888 GB, free: 15.57 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005976/0.3047, allocations: 340.3 kB / 0.4891 GB, free: 15.24 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002516/0.3072, allocations: 1.705 MB / 0.4908 GB, free: 13.43 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004182/0.3077, allocations: 273 kB / 0.4911 GB, free: 13.15 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002297/0.3079, allocations: 148.1 kB / 0.4912 GB, free: 13 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.152e-05/0.3079, allocations: 4 kB / 0.4912 GB, free: 13 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.44e-05/0.308, allocations: 38.56 kB / 0.4912 GB, free: 12.95 MB / 378.7 MB Notification: Performance of pre-optimization done (n=31): time 1.302e-06/0.308, allocations: 0 / 0.4912 GB, free: 12.95 MB / 378.7 MB Notification: Performance of matching and sorting (n=32): time 0.001723/0.3097, allocations: 0.9727 MB / 0.4922 GB, free: 11.9 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.792e-05/0.3098, allocations: 81.11 kB / 0.4923 GB, free: 11.8 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003831/0.3102, allocations: 385.5 kB / 0.4926 GB, free: 11.42 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.829e-05/0.3102, allocations: 33.7 kB / 0.4927 GB, free: 11.38 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001523/0.3103, allocations: 279.5 kB / 0.4929 GB, free: 11.1 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.185e-05/0.3104, allocations: 114.4 kB / 0.493 GB, free: 10.99 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.826e-05/0.3105, allocations: 12 kB / 0.493 GB, free: 10.98 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001187/0.3106, allocations: 350.7 kB / 0.4934 GB, free: 10.62 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002084/0.3108, allocations: 104.8 kB / 0.4935 GB, free: 10.52 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002633/0.3111, allocations: 206.5 kB / 0.4937 GB, free: 10.28 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004511/0.3115, allocations: 315.6 kB / 0.494 GB, free: 9.941 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.543e-06/0.3115, allocations: 0 / 0.494 GB, free: 9.941 MB / 378.7 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.0007707/0.3123, allocations: 453.9 kB / 0.4944 GB, free: 9.488 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.422e-05/0.3123, allocations: 4 kB / 0.4944 GB, free: 9.484 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.976e-06/0.3124, allocations: 7.984 kB / 0.4944 GB, free: 9.477 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003069/0.3127, allocations: 81.75 kB / 0.4945 GB, free: 9.391 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003037/0.313, allocations: 87.83 kB / 0.4946 GB, free: 9.305 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002185/0.3152, allocations: 2.849 MB / 0.4974 GB, free: 6.191 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002633/0.3155, allocations: 23.83 kB / 0.4974 GB, free: 6.168 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.54e-05/0.3155, allocations: 19.94 kB / 0.4974 GB, free: 6.148 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * 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 (45): * Single equations (assignments): 43 * 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%) 5,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002058/0.3157, allocations: 165.8 kB / 0.4976 GB, free: 5.977 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.228e-05/0.3158, allocations: 43.47 kB / 0.4976 GB, free: 5.934 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.094e-05/0.3159, allocations: 43.47 kB / 0.4977 GB, free: 5.883 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.089e-06/0.3159, allocations: 7.984 kB / 0.4977 GB, free: 5.875 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.153e-06/0.3159, allocations: 4 kB / 0.4977 GB, free: 5.871 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.687e-06/0.3159, allocations: 0 / 0.4977 GB, free: 5.871 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001278/0.3172, allocations: 0.9425 MB / 0.4986 GB, free: 4.867 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.057e-06/0.3172, allocations: 4 kB / 0.4986 GB, free: 4.863 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001787/0.3174, allocations: 43.92 kB / 0.4986 GB, free: 4.82 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002534/0.3176, allocations: 81.64 kB / 0.4987 GB, free: 4.734 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.217e-05/0.3177, allocations: 11.98 kB / 0.4987 GB, free: 4.723 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002081/0.3198, allocations: 2.854 MB / 0.5015 GB, free: 1.605 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.262e-06/0.3198, allocations: 0 / 0.5015 GB, free: 1.605 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008608/0.3207, allocations: 0.6248 MB / 0.5021 GB, free: 0.957 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.626e-05/0.3208, allocations: 116.7 kB / 0.5022 GB, free: 0.8242 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.311e-05/0.3208, allocations: 4 kB / 0.5022 GB, free: 0.8203 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003233/0.3211, allocations: 39.92 kB / 0.5023 GB, free: 0.7812 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.14e-05/0.3212, allocations: 31.89 kB / 0.5023 GB, free: 0.75 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.857e-05/0.3212, allocations: 4 kB / 0.5023 GB, free: 0.7461 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.000269/0.3215, allocations: 271.2 kB / 0.5026 GB, free: 492 kB / 378.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3215, allocations: 0 / 0.5026 GB, free: 492 kB / 378.7 MB Notification: Performance of remove unused functions: time 0.000532/0.3221, allocations: 124 kB / 0.5027 GB, free: 368 kB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 3 (inductor22.i,basicTransformer.i1,basicTransformer.i2) * 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 (26): * Single equations (assignments): 24 * 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%) 5,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001419/0.3222, allocations: 111.2 kB / 0.5028 GB, free: 244 kB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.1368/0.459, allocations: 0.5112 MB / 0.5033 GB, free: 94.53 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 7.254e-06/0.4591, allocations: 0.5 kB / 0.5033 GB, free: 94.53 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006196/0.4597, allocations: 392.2 kB / 0.5037 GB, free: 94.31 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005962/0.4603, allocations: 60.83 kB / 0.5037 GB, free: 94.3 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001613/0.4619, allocations: 1.204 MB / 0.5049 GB, free: 93.71 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002727/0.4622, allocations: 0.8402 MB / 0.5057 GB, free: 92.99 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.72e-05/0.4623, allocations: 36.27 kB / 0.5057 GB, free: 92.98 MB / 378.7 MB Notification: Performance of SimCode: time 9.11e-07/0.4623, allocations: 0 / 0.5057 GB, free: 92.98 MB / 378.7 MB Notification: Performance of Templates: time 0.009194/0.4715, allocations: 8.818 MB / 0.5144 GB, free: 91.55 MB / 378.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.CompareTransformers.makefile (rm -f Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.CompareTransformers.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.CompareTransformers.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.CompareTransformers.pipe >> ../files/Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.CompareTransformers.sim & ./Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.CompareTransformers --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.CompareTransformers.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.CompareTransformers_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/CompareTransformers/CompareTransformers.csv","../files/Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.CompareTransformers.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches