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.001427/0.001427, allocations: 191.8 kB / 17.37 MB, free: 4.406 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.291/1.291, allocations: 226.6 MB / 244.7 MB, free: 8.195 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008238/0.0008236, allocations: 100 kB / 296.7 MB, free: 6.895 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002216/0.0002217, allocations: 4 kB / 356.7 MB, free: 10.91 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1993/0.1996, allocations: 51.31 MB / 408.1 MB, free: 27.71 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.CompareTransformers): time 0.002678/0.2023, allocations: 3.53 MB / 411.6 MB, free: 24.16 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001066/0.2034, allocations: 0.8937 MB / 412.5 MB, free: 23.27 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001666/0.2035, allocations: 8 kB / 412.5 MB, free: 23.26 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001519/0.2037, allocations: 67.45 kB / 412.6 MB, free: 23.2 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002417/0.204, allocations: 154 kB / 412.7 MB, free: 23.05 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002687/0.2042, allocations: 95.89 kB / 412.8 MB, free: 22.95 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004071/0.2046, allocations: 0.6246 MB / 413.4 MB, free: 22.33 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002411/0.2049, allocations: 175.9 kB / 413.6 MB, free: 22.15 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002362/0.2051, allocations: 223.1 kB / 413.8 MB, free: 21.93 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002074/0.2054, allocations: 254.8 kB / 414.1 MB, free: 21.68 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 4.993e-05/0.2054, allocations: 32 kB / 414.1 MB, free: 21.65 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.135e-05/0.2055, allocations: 32 kB / 414.1 MB, free: 21.62 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 5.88e-05/0.2056, allocations: 107.5 kB / 414.2 MB, free: 21.51 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000168/0.2058, allocations: 288.3 kB / 414.5 MB, free: 21.22 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002888/0.206, allocations: 475.6 kB / 415 MB, free: 20.76 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.07e-06/0.2061, allocations: 0 / 415 MB, free: 20.76 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.873e-06/0.2061, allocations: 0 / 415 MB, free: 20.76 MB / 298.7 MB Notification: Performance of Transformations before backend: time 6.953e-06/0.2061, allocations: 0 / 415 MB, free: 20.76 MB / 298.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.0009852/0.2071, allocations: 0.7872 MB / 415.8 MB, free: 19.92 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.812e-05/0.2071, allocations: 12.02 kB / 415.8 MB, free: 19.91 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002369/0.2074, allocations: 80.27 kB / 415.8 MB, free: 19.83 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003279/0.2077, allocations: 367.6 kB / 416.2 MB, free: 19.43 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.357e-05/0.2077, allocations: 37.38 kB / 416.2 MB, free: 19.4 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.471e-05/0.2078, allocations: 52.28 kB / 416.3 MB, free: 19.35 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006285/0.2084, allocations: 491.5 kB / 416.8 MB, free: 18.85 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.423e-05/0.2084, allocations: 0 / 416.8 MB, free: 18.85 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.015e-05/0.2085, allocations: 24 kB / 416.8 MB, free: 18.83 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.207e-06/0.2085, allocations: 12 kB / 416.8 MB, free: 18.82 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005311/0.209, allocations: 336.3 kB / 417.1 MB, free: 18.49 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002009/0.2111, allocations: 1.701 MB / 418.8 MB, free: 16.69 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003556/0.2114, allocations: 273 kB / 419.1 MB, free: 16.41 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001906/0.2116, allocations: 141.7 kB / 419.2 MB, free: 16.26 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.438e-05/0.2117, allocations: 11.98 kB / 419.3 MB, free: 16.25 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.049e-05/0.2117, allocations: 42.5 kB / 419.3 MB, free: 16.2 MB / 298.7 MB Notification: Performance of pre-optimization done (n=31): time 1.363e-06/0.2117, allocations: 0 / 419.3 MB, free: 16.2 MB / 298.7 MB Notification: Performance of matching and sorting (n=32): time 0.001518/0.2132, allocations: 0.9694 MB / 420.3 MB, free: 15.15 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.557e-05/0.2133, allocations: 81.11 kB / 420.3 MB, free: 15.05 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002935/0.2136, allocations: 377.6 kB / 420.7 MB, free: 14.68 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.983e-05/0.2136, allocations: 29.7 kB / 420.7 MB, free: 14.64 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001059/0.2137, allocations: 295.4 kB / 421 MB, free: 14.34 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.108e-05/0.2138, allocations: 106.5 kB / 421.1 MB, free: 14.24 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.725e-05/0.2138, allocations: 8 kB / 421.1 MB, free: 14.23 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.78e-05/0.2138, allocations: 350.7 kB / 421.5 MB, free: 13.88 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001779/0.214, allocations: 108.8 kB / 421.6 MB, free: 13.77 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002014/0.2142, allocations: 202.6 kB / 421.8 MB, free: 13.54 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003763/0.2146, allocations: 307.1 kB / 422.1 MB, free: 13.2 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.543e-06/0.2146, allocations: 4 kB / 422.1 MB, free: 13.2 MB / 298.7 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.0006587/0.2153, allocations: 457.7 kB / 422.5 MB, free: 12.74 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.484e-05/0.2153, allocations: 8 kB / 422.5 MB, free: 12.73 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.094e-06/0.2153, allocations: 4 kB / 422.6 MB, free: 12.73 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003081/0.2156, allocations: 81.69 kB / 422.6 MB, free: 12.64 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002797/0.2159, allocations: 83.84 kB / 422.7 MB, free: 12.56 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001573/0.2175, allocations: 2.857 MB / 425.6 MB, free: 9.445 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002262/0.2178, allocations: 19.91 kB / 425.6 MB, free: 9.426 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.201e-05/0.2178, allocations: 16 kB / 425.6 MB, free: 9.41 MB / 298.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.0001418/0.2179, allocations: 169.7 kB / 425.8 MB, free: 9.234 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.95e-05/0.218, allocations: 47.52 kB / 425.8 MB, free: 9.188 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.865e-05/0.2181, allocations: 43.47 kB / 425.9 MB, free: 9.141 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.955e-06/0.2181, allocations: 4 kB / 425.9 MB, free: 9.137 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.012e-06/0.2181, allocations: 0 / 425.9 MB, free: 9.137 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.579e-06/0.2181, allocations: 4 kB / 425.9 MB, free: 9.133 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001026/0.2191, allocations: 0.9425 MB / 426.8 MB, free: 8.129 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.314e-06/0.2192, allocations: 192 / 426.8 MB, free: 8.129 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001702/0.2193, allocations: 59.91 kB / 426.9 MB, free: 8.07 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002232/0.2196, allocations: 77.64 kB / 426.9 MB, free: 7.988 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.981e-05/0.2196, allocations: 8 kB / 427 MB, free: 7.98 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00147/0.2211, allocations: 2.858 MB / 429.8 MB, free: 4.855 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.543e-06/0.2211, allocations: 64 / 429.8 MB, free: 4.855 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006985/0.2218, allocations: 0.6208 MB / 430.4 MB, free: 4.211 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.88e-05/0.2219, allocations: 112.6 kB / 430.5 MB, free: 4.082 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.465e-05/0.2219, allocations: 15.94 kB / 430.6 MB, free: 4.066 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002997/0.2222, allocations: 39.97 kB / 430.6 MB, free: 4.027 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.512e-05/0.2223, allocations: 23.91 kB / 430.6 MB, free: 4.004 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.729e-05/0.2223, allocations: 8 kB / 430.6 MB, free: 3.996 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001997/0.2225, allocations: 271.2 kB / 430.9 MB, free: 3.73 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.2225, allocations: 0 / 430.9 MB, free: 3.73 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0004655/0.223, allocations: 116 kB / 431 MB, free: 3.617 MB / 298.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.0001133/0.2231, allocations: 111.9 kB / 431.1 MB, free: 3.496 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0006999/0.2238, allocations: 0.5163 MB / 431.6 MB, free: 2.957 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.595e-06/0.2238, allocations: 0 / 431.6 MB, free: 2.957 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004592/0.2243, allocations: 393.1 kB / 432 MB, free: 2.547 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004902/0.2248, allocations: 69.11 kB / 432.1 MB, free: 2.484 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00124/0.226, allocations: 1.213 MB / 433.3 MB, free: 1.234 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001913/0.2262, allocations: 0.8352 MB / 434.1 MB, free: 376 kB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.701e-05/0.2263, allocations: 31.44 kB / 434.2 MB, free: 344 kB / 298.7 MB Notification: Performance of SimCode: time 3.11e-07/0.2263, allocations: 0 / 434.2 MB, free: 344 kB / 298.7 MB Notification: Performance of Templates: time 0.009485/0.2358, allocations: 8.808 MB / 443 MB, free: 7.543 MB / 314.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/jenkins/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