Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Analog.Examples.CompareTransformers.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001148/0.001148, allocations: 112.2 kB / 21.22 MB, free: 0.7305 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001453/0.001453, allocations: 212.2 kB / 24.53 MB, free: 4.07 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.372/1.372, allocations: 230.6 MB / 258.3 MB, free: 8.027 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.CompareTransformers,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Analog_Examples_CompareTransformers",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.CompareTransformers,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Analog_Examples_CompareTransformers",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001357/0.001357, allocations: 43.94 kB / 378.6 MB, free: 3.109 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2399/0.2413, allocations: 53.36 MB / 432 MB, free: 6.867 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.CompareTransformers): time 0.005156/0.2465, allocations: 4.151 MB / 436.1 MB, free: 2.703 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001671/0.2481, allocations: 0.9658 MB / 437.1 MB, free: 1.73 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001834/0.2483, allocations: 11.94 kB / 437.1 MB, free: 1.719 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001945/0.2485, allocations: 95.06 kB / 437.2 MB, free: 1.625 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003238/0.2488, allocations: 194.4 kB / 437.4 MB, free: 1.434 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003258/0.2492, allocations: 163.6 kB / 437.5 MB, free: 1.273 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006617/0.2498, allocations: 0.6694 MB / 438.2 MB, free: 0.6016 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002355/0.2501, allocations: 143.7 kB / 438.3 MB, free: 464 kB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003147/0.2504, allocations: 282.9 kB / 438.6 MB, free: 180 kB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003474/0.2507, allocations: 286.7 kB / 438.9 MB, free: 15.89 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 7.169e-05/0.2508, allocations: 56 kB / 438.9 MB, free: 15.84 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001017/0.2509, allocations: 56 kB / 439 MB, free: 15.79 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001043/0.251, allocations: 139.4 kB / 439.1 MB, free: 15.65 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002533/0.2512, allocations: 302.5 kB / 439.4 MB, free: 15.35 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006375/0.2519, allocations: 0.6457 MB / 440.1 MB, free: 14.7 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.174e-06/0.2519, allocations: 0 / 440.1 MB, free: 14.7 MB / 350.1 MB Notification: Performance of FrontEnd: time 7.01e-07/0.2519, allocations: 0 / 440.1 MB, free: 14.7 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.959e-06/0.2519, allocations: 0 / 440.1 MB, free: 14.7 MB / 350.1 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.001327/0.2532, allocations: 0.8086 MB / 440.9 MB, free: 13.86 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.375e-05/0.2533, allocations: 12.03 kB / 440.9 MB, free: 13.85 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 4.393e-05/0.2533, allocations: 25.47 kB / 440.9 MB, free: 13.82 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001328/0.2534, allocations: 115.8 kB / 441 MB, free: 13.7 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000274/0.2537, allocations: 92.48 kB / 441.1 MB, free: 13.61 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005702/0.2543, allocations: 326 kB / 441.4 MB, free: 13.27 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.971e-05/0.2543, allocations: 45.69 kB / 441.5 MB, free: 13.23 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.316e-05/0.2544, allocations: 56.38 kB / 441.5 MB, free: 13.17 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008489/0.2552, allocations: 0.519 MB / 442.1 MB, free: 12.63 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.81e-05/0.2553, allocations: 3.953 kB / 442.1 MB, free: 12.63 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.951e-05/0.2553, allocations: 28 kB / 442.1 MB, free: 12.6 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.602e-05/0.2553, allocations: 19.98 kB / 442.1 MB, free: 12.58 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006649/0.256, allocations: 361.1 kB / 442.5 MB, free: 12.23 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002869/0.2589, allocations: 1.709 MB / 444.2 MB, free: 10.44 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005289/0.2594, allocations: 317.1 kB / 444.5 MB, free: 10.11 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002772/0.2597, allocations: 174.6 kB / 444.7 MB, free: 9.938 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.409e-05/0.2597, allocations: 12.31 kB / 444.7 MB, free: 9.926 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.593e-05/0.2597, allocations: 46.36 kB / 444.7 MB, free: 9.871 MB / 350.1 MB Notification: Performance of pre-optimization done (n=45): time 1.483e-06/0.2597, allocations: 7.938 kB / 444.7 MB, free: 9.863 MB / 350.1 MB Notification: Performance of matching and sorting (n=60): time 0.0039/0.2636, allocations: 1.675 MB / 446.4 MB, free: 8.125 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.255e-05/0.2637, allocations: 92.98 kB / 446.5 MB, free: 8.016 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004522/0.2642, allocations: 393.6 kB / 446.9 MB, free: 7.625 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.489e-05/0.2642, allocations: 37.7 kB / 446.9 MB, free: 7.582 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002186/0.2644, allocations: 288.9 kB / 447.2 MB, free: 7.293 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001798/0.2646, allocations: 226.1 kB / 447.4 MB, free: 7.07 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001534/0.2647, allocations: 106.3 kB / 447.5 MB, free: 6.961 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001768/0.2649, allocations: 354.8 kB / 447.9 MB, free: 6.605 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003343/0.2653, allocations: 157.2 kB / 448 MB, free: 6.449 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004197/0.2657, allocations: 269 kB / 448.3 MB, free: 6.152 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007638/0.2664, allocations: 457.1 kB / 448.7 MB, free: 5.672 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.933e-06/0.2664, allocations: 0 / 448.7 MB, free: 5.672 MB / 350.1 MB Notification: Performance of matching and sorting (n=79) (initialization): time 0.001115/0.2676, allocations: 0.6011 MB / 449.3 MB, free: 5.059 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.755e-05/0.2676, allocations: 8 kB / 449.3 MB, free: 5.051 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.416e-06/0.2676, allocations: 4 kB / 449.3 MB, free: 5.047 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003048/0.2679, allocations: 85.81 kB / 449.4 MB, free: 4.957 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004775/0.2684, allocations: 127.8 kB / 449.5 MB, free: 4.832 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00268/0.271, allocations: 2.909 MB / 452.5 MB, free: 1.691 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003401/0.2714, allocations: 27.98 kB / 452.5 MB, free: 1.664 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.59e-05/0.2714, allocations: 20 kB / 452.5 MB, free: 1.645 MB / 350.1 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 (73): * Single equations (assignments): 71 * 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.000234/0.2717, allocations: 173.7 kB / 452.7 MB, free: 1.465 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001057/0.2718, allocations: 47.72 kB / 452.7 MB, free: 1.418 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001059/0.2719, allocations: 64.23 kB / 452.8 MB, free: 1.355 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.803e-06/0.2719, allocations: 8 kB / 452.8 MB, free: 1.348 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.19e-05/0.2719, allocations: 8 kB / 452.8 MB, free: 1.34 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.945e-06/0.2719, allocations: 3.984 kB / 452.8 MB, free: 1.336 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002059/0.274, allocations: 1.25 MB / 454 MB, free: 24 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.896e-06/0.274, allocations: 0 / 454 MB, free: 24 kB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004153/0.2744, allocations: 99.88 kB / 454.1 MB, free: 15.93 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002586/0.2746, allocations: 81.72 kB / 454.2 MB, free: 15.84 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.686e-05/0.2747, allocations: 12 kB / 454.2 MB, free: 15.83 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002485/0.2771, allocations: 2.881 MB / 457.1 MB, free: 12.71 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.462e-06/0.2771, allocations: 0 / 457.1 MB, free: 12.71 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001394/0.2785, allocations: 0.8787 MB / 458 MB, free: 11.81 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.222e-05/0.2786, allocations: 47.7 kB / 458 MB, free: 11.76 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.822e-05/0.2787, allocations: 19.92 kB / 458.1 MB, free: 11.74 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003733/0.2791, allocations: 35.98 kB / 458.1 MB, free: 11.71 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.352e-05/0.2791, allocations: 47.84 kB / 458.1 MB, free: 11.66 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.009e-05/0.2792, allocations: 16 kB / 458.2 MB, free: 11.64 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0003062/0.2795, allocations: 279.2 kB / 458.4 MB, free: 11.38 MB / 366.1 MB Notification: Performance of sort global known variables: time 1e-07/0.2795, allocations: 0 / 458.4 MB, free: 11.38 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006096/0.2801, allocations: 148 kB / 458.6 MB, free: 11.23 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 3 ($outputAlias_i2I,$outputAlias_i1B,$outputAlias_i2B) * 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 (54): * Single equations (assignments): 52 * 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.001705/0.2818, allocations: 1.438 MB / 460 MB, free: 9.754 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001201/0.283, allocations: 0.6537 MB / 460.7 MB, free: 9.078 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.956e-06/0.283, allocations: 8.062 kB / 460.7 MB, free: 9.07 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006801/0.2837, allocations: 453.1 kB / 461.1 MB, free: 8.602 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000532/0.2842, allocations: 77.66 kB / 461.2 MB, free: 8.523 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006771/0.291, allocations: 4.859 MB / 466.1 MB, free: 3.48 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004984/0.2915, allocations: 0.8683 MB / 466.9 MB, free: 2.586 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002178/0.2917, allocations: 56.58 kB / 467 MB, free: 2.527 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000263/0.292, allocations: 203.4 kB / 467.2 MB, free: 2.328 MB / 366.1 MB Notification: Performance of SimCode: time 5.72e-07/0.292, allocations: 0 / 467.2 MB, free: 2.328 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04083/0.3328, allocations: 10.88 MB / 478.1 MB, free: 7.645 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.48/11.81, allocations: 9.969 kB / 478.1 MB, free: 7.641 MB / 382.1 MB " [Timeout remaining time 648] (rm -f Modelica_4.1.0_Modelica.Electrical.Analog.Examples.CompareTransformers.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Analog.Examples.CompareTransformers.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Analog.Examples.CompareTransformers.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Analog.Examples.CompareTransformers.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Electrical.Analog.Examples.CompareTransformers_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Electrical_Analog_Examples_CompareTransformers_fmu --startTime=0 --stopTime=50 --stepSize=0.001 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Electrical_Analog_Examples_CompareTransformers.fmu > Modelica_4.1.0_Modelica.Electrical.Analog.Examples.CompareTransformers.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Analog.Examples.CompareTransformers_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Analog/Examples/CompareTransformers/CompareTransformers.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Electrical.Analog.Examples.CompareTransformers.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 658] Reference file matches [Calling sys.exit(0), Time elapsed: 18.091370706039015]