Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CompareTransformers.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001813/0.001813, allocations: 95.86 kB / 20.96 MB, free: 3.465 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001843/0.001843, allocations: 153.1 kB / 24.27 MB, free: 168 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.488/1.488, allocations: 173.4 MB / 200.8 MB, free: 9.293 MB / 186.7 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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.Electrical.Analog.Examples.CompareTransformers,tolerance=1e-06,outputFormat="mat",numberOfIntervals=50000,variableFilter="time|basicTransformer.i1|basicTransformer.i2|inductor22.i",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CompareTransformers") translateModel(Modelica.Electrical.Analog.Examples.CompareTransformers,tolerance=1e-06,outputFormat="mat",numberOfIntervals=50000,variableFilter="time|basicTransformer.i1|basicTransformer.i2|inductor22.i",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CompareTransformers") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.302e-06/1.302e-06, allocations: 0 / 267.3 MB, free: 6.684 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.015e-05/3.145e-05, allocations: 6.25 kB / 267.4 MB, free: 6.676 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.CompareTransformers): time 0.005944/0.005976, allocations: 3.999 MB / 271.4 MB, free: 2.656 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001718/0.007694, allocations: 0.8606 MB / 272.2 MB, free: 1.789 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000212/0.007906, allocations: 8 kB / 272.2 MB, free: 1.781 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002413/0.008147, allocations: 95.02 kB / 272.3 MB, free: 1.688 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004133/0.008561, allocations: 202.3 kB / 272.5 MB, free: 1.488 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003735/0.008934, allocations: 139.7 kB / 272.6 MB, free: 1.352 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0008148/0.009749, allocations: 0.6924 MB / 273.3 MB, free: 0.6562 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002933/0.01004, allocations: 147.7 kB / 273.5 MB, free: 0.5039 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005371/0.01058, allocations: 395 kB / 273.9 MB, free: 120 kB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003667/0.01095, allocations: 219.3 kB / 274.1 MB, free: 15.9 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001023/0.01105, allocations: 56 kB / 274.1 MB, free: 15.85 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001195/0.01117, allocations: 56 kB / 274.2 MB, free: 15.79 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001364/0.0113, allocations: 131.4 kB / 274.3 MB, free: 15.66 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002747/0.01158, allocations: 219.4 kB / 274.5 MB, free: 15.45 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0008192/0.0124, allocations: 0.6503 MB / 275.2 MB, free: 14.8 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.266e-06/0.0124, allocations: 3.938 kB / 275.2 MB, free: 14.79 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.142e-06/0.0124, allocations: 0 / 275.2 MB, free: 14.79 MB / 266.7 MB Notification: Performance of Transformations before backend: time 9.538e-06/0.01241, allocations: 4 kB / 275.2 MB, free: 14.79 MB / 266.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.00171/0.01412, allocations: 0.9355 MB / 276.1 MB, free: 13.82 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.815e-05/0.01416, allocations: 8.031 kB / 276.1 MB, free: 13.81 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001868/0.01435, allocations: 108.5 kB / 276.2 MB, free: 13.7 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005393/0.01489, allocations: 304.2 kB / 276.5 MB, free: 13.38 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.19e-05/0.01494, allocations: 37.38 kB / 276.6 MB, free: 13.34 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001061/0.01504, allocations: 60.33 kB / 276.6 MB, free: 13.28 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001079/0.01612, allocations: 0.6391 MB / 277.3 MB, free: 12.58 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.693e-05/0.01614, allocations: 192 / 277.3 MB, free: 12.58 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.871e-05/0.01619, allocations: 24.38 kB / 277.3 MB, free: 12.56 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.959e-05/0.01621, allocations: 15.94 kB / 277.3 MB, free: 12.54 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006563/0.01686, allocations: 308.5 kB / 277.6 MB, free: 12.24 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00319/0.02005, allocations: 1.727 MB / 279.3 MB, free: 10.43 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005276/0.02058, allocations: 270 kB / 279.6 MB, free: 10.14 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002508/0.02083, allocations: 131.6 kB / 279.7 MB, free: 10 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.263e-05/0.02087, allocations: 11.94 kB / 279.7 MB, free: 9.988 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.208e-05/0.02091, allocations: 45.39 kB / 279.8 MB, free: 9.934 MB / 266.7 MB Notification: Performance of pre-optimization done (n=31): time 1.383e-06/0.02091, allocations: 0 / 279.8 MB, free: 9.934 MB / 266.7 MB Notification: Performance of matching and sorting (n=32): time 0.001983/0.02289, allocations: 0.8223 MB / 280.6 MB, free: 9.066 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.792e-05/0.02297, allocations: 81.11 kB / 280.7 MB, free: 8.969 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005568/0.02353, allocations: 478.5 kB / 281.2 MB, free: 8.484 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.609e-05/0.02356, allocations: 33.7 kB / 281.2 MB, free: 8.445 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002798/0.02384, allocations: 350.9 kB / 281.5 MB, free: 8.098 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000127/0.02397, allocations: 123 kB / 281.7 MB, free: 7.977 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000152/0.02412, allocations: 87.8 kB / 281.7 MB, free: 7.883 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0003187/0.02444, allocations: 0.5313 MB / 282.3 MB, free: 7.34 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002206/0.02466, allocations: 96.95 kB / 282.4 MB, free: 7.238 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003536/0.02501, allocations: 229.2 kB / 282.6 MB, free: 6.961 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005916/0.02561, allocations: 358.7 kB / 282.9 MB, free: 6.562 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.914e-06/0.02561, allocations: 0 / 282.9 MB, free: 6.562 MB / 266.7 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.0009262/0.02653, allocations: 463.6 kB / 283.4 MB, free: 6.098 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.15e-05/0.02656, allocations: 10.5 kB / 283.4 MB, free: 6.09 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.792e-06/0.02656, allocations: 0 / 283.4 MB, free: 6.09 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006569/0.02722, allocations: 119.4 kB / 283.5 MB, free: 5.965 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003253/0.02754, allocations: 79.84 kB / 283.6 MB, free: 5.887 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003672/0.03122, allocations: 4.006 MB / 287.6 MB, free: 1.637 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002549/0.03147, allocations: 19.89 kB / 287.6 MB, free: 1.617 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.846e-05/0.0315, allocations: 12.16 kB / 287.6 MB, free: 1.605 MB / 266.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 (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,5,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0002551/0.03175, allocations: 224.4 kB / 287.9 MB, free: 1.375 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001128/0.03187, allocations: 47.77 kB / 287.9 MB, free: 1.328 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.673e-05/0.03195, allocations: 47.27 kB / 287.9 MB, free: 1.285 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.478e-06/0.03196, allocations: 3.984 kB / 288 MB, free: 1.281 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.775e-06/0.03197, allocations: 4 kB / 288 MB, free: 1.277 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.757e-06/0.03197, allocations: 0 / 288 MB, free: 1.277 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001544/0.03351, allocations: 0.9607 MB / 288.9 MB, free: 272 kB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.969e-06/0.03352, allocations: 4 kB / 288.9 MB, free: 268 kB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001847/0.0337, allocations: 35.98 kB / 289 MB, free: 232 kB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005831/0.03429, allocations: 123.2 kB / 289.1 MB, free: 100 kB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.308e-05/0.03431, allocations: 11.92 kB / 289.1 MB, free: 88 kB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0036/0.03791, allocations: 4.006 MB / 293.1 MB, free: 11.84 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.393e-06/0.03791, allocations: 0 / 293.1 MB, free: 11.84 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001095/0.03901, allocations: 0.7133 MB / 293.8 MB, free: 11.09 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.943e-05/0.03909, allocations: 43.62 kB / 293.9 MB, free: 11.05 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.692e-05/0.03913, allocations: 8 kB / 293.9 MB, free: 11.04 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003226/0.03946, allocations: 23.98 kB / 293.9 MB, free: 11.02 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.96e-05/0.03954, allocations: 27.98 kB / 293.9 MB, free: 10.99 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.377e-05/0.03956, allocations: 11.98 kB / 293.9 MB, free: 10.98 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0003682/0.03993, allocations: 323 kB / 294.2 MB, free: 10.67 MB / 282.7 MB Notification: Performance of sort global known variables: time 6e-08/0.03993, allocations: 0 / 294.2 MB, free: 10.67 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0005725/0.0405, allocations: 116 kB / 294.3 MB, free: 10.55 MB / 282.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 (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,5,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0001593/0.04066, allocations: 111.2 kB / 294.5 MB, free: 10.44 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0011/0.04176, allocations: 0.6342 MB / 295.1 MB, free: 9.773 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 2.635e-06/0.04176, allocations: 0 / 295.1 MB, free: 9.773 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007283/0.04249, allocations: 0.4914 MB / 295.6 MB, free: 9.242 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004841/0.04297, allocations: 49.73 kB / 295.6 MB, free: 9.195 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001742/0.04472, allocations: 0.9169 MB / 296.5 MB, free: 8.242 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002608/0.04498, allocations: 230.2 kB / 296.8 MB, free: 7.992 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0001603/0.04514, allocations: 47.25 kB / 296.8 MB, free: 7.945 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.262e-05/0.04522, allocations: 28.5 kB / 296.8 MB, free: 7.918 MB / 282.7 MB Notification: Performance of SimCode: time 5.21e-07/0.04522, allocations: 0 / 296.8 MB, free: 7.918 MB / 282.7 MB Notification: Performance of Templates: time 0.01084/0.05606, allocations: 4.535 MB / 301.4 MB, free: 3.445 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CompareTransformers.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CompareTransformers.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CompareTransformers.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CompareTransformers.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CompareTransformers.sim & ./Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CompareTransformers -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CompareTransformers.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CompareTransformers.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 5.118166899075732]