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.001281/0.001281, allocations: 107.9 kB / 18.48 MB, free: 4.543 MB / 14.72 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.001226/0.001226, allocations: 198.5 kB / 21.43 MB, free: 1.609 MB / 14.72 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.376/1.376, allocations: 225.6 MB / 249.8 MB, free: 3.465 MB / 190.1 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: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.CompareTransformers,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_CompareTransformers",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.CompareTransformers,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_CompareTransformers",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001659/0.001659, allocations: 51.92 kB / 366.4 MB, free: 0.7656 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09454/0.0962, allocations: 52.14 MB / 418.5 MB, free: 12.53 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.CompareTransformers): time 0.005751/0.102, allocations: 4.096 MB / 422.6 MB, free: 8.418 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00186/0.1038, allocations: 0.8723 MB / 423.5 MB, free: 7.539 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004343/0.1042, allocations: 15.94 kB / 423.5 MB, free: 7.523 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003475/0.1046, allocations: 99 kB / 423.6 MB, free: 7.426 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005525/0.1051, allocations: 182.4 kB / 423.8 MB, free: 7.246 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004659/0.1056, allocations: 143.8 kB / 423.9 MB, free: 7.105 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008966/0.1065, allocations: 0.6732 MB / 424.6 MB, free: 6.43 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002824/0.1068, allocations: 139.1 kB / 424.7 MB, free: 6.281 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003799/0.1072, allocations: 270.9 kB / 425 MB, free: 6.016 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000384/0.1076, allocations: 286.7 kB / 425.3 MB, free: 5.734 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 8.422e-05/0.1076, allocations: 56 kB / 425.3 MB, free: 5.68 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.022e-05/0.1077, allocations: 56 kB / 425.4 MB, free: 5.625 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001141/0.1078, allocations: 131.5 kB / 425.5 MB, free: 5.496 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002887/0.1081, allocations: 302.5 kB / 425.8 MB, free: 5.199 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007281/0.1089, allocations: 0.6456 MB / 426.5 MB, free: 4.551 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.127e-06/0.1089, allocations: 4 kB / 426.5 MB, free: 4.547 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.633e-06/0.1089, allocations: 0 / 426.5 MB, free: 4.547 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.438e-05/0.1089, allocations: 0 / 426.5 MB, free: 4.547 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.001472/0.1104, allocations: 0.8801 MB / 427.3 MB, free: 3.617 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.697e-05/0.1104, allocations: 8.031 kB / 427.4 MB, free: 3.609 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 5.097e-05/0.1105, allocations: 25.45 kB / 427.4 MB, free: 3.582 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001391/0.1106, allocations: 111.9 kB / 427.5 MB, free: 3.465 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001167/0.1107, allocations: 76.45 kB / 427.6 MB, free: 3.391 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005553/0.1113, allocations: 383.9 kB / 427.9 MB, free: 2.977 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.584e-05/0.1113, allocations: 37.69 kB / 428 MB, free: 2.941 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.96e-05/0.1114, allocations: 60.33 kB / 428 MB, free: 2.883 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008679/0.1123, allocations: 0.5189 MB / 428.5 MB, free: 2.344 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.954e-05/0.1123, allocations: 3.938 kB / 428.6 MB, free: 2.34 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.78e-05/0.1123, allocations: 28 kB / 428.6 MB, free: 2.312 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.68e-05/0.1124, allocations: 12 kB / 428.6 MB, free: 2.301 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006918/0.113, allocations: 364.7 kB / 428.9 MB, free: 1.949 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00282/0.1159, allocations: 1.789 MB / 430.7 MB, free: 56 kB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005806/0.1164, allocations: 313.1 kB / 431 MB, free: 15.73 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002856/0.1167, allocations: 172.3 kB / 431.2 MB, free: 15.56 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.806e-05/0.1168, allocations: 4.375 kB / 431.2 MB, free: 15.55 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.47e-05/0.1168, allocations: 54.44 kB / 431.3 MB, free: 15.49 MB / 366.1 MB Notification: Performance of pre-optimization done (n=45): time 2.104e-06/0.1168, allocations: 0 / 431.3 MB, free: 15.49 MB / 366.1 MB Notification: Performance of matching and sorting (n=60): time 0.004048/0.1209, allocations: 1.912 MB / 433.2 MB, free: 13.46 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.141e-05/0.1209, allocations: 96.98 kB / 433.3 MB, free: 13.35 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004367/0.1214, allocations: 385.6 kB / 433.7 MB, free: 12.96 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.328e-05/0.1214, allocations: 37.7 kB / 433.7 MB, free: 12.92 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001987/0.1216, allocations: 288.8 kB / 434 MB, free: 12.63 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001619/0.1218, allocations: 218.2 kB / 434.2 MB, free: 12.41 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001555/0.1219, allocations: 106.3 kB / 434.3 MB, free: 12.3 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001731/0.1221, allocations: 354.8 kB / 434.6 MB, free: 11.95 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003318/0.1224, allocations: 165.2 kB / 434.8 MB, free: 11.79 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000412/0.1228, allocations: 269 kB / 435.1 MB, free: 11.48 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007565/0.1236, allocations: 447.5 kB / 435.5 MB, free: 11.01 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.094e-06/0.1236, allocations: 3.938 kB / 435.5 MB, free: 11.01 MB / 366.1 MB Notification: Performance of matching and sorting (n=79) (initialization): time 0.001166/0.1248, allocations: 0.6016 MB / 436.1 MB, free: 10.39 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.33e-05/0.1248, allocations: 10.03 kB / 436.1 MB, free: 10.39 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.234e-06/0.1248, allocations: 0 / 436.1 MB, free: 10.39 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003259/0.1251, allocations: 85.97 kB / 436.2 MB, free: 10.3 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005006/0.1256, allocations: 131.8 kB / 436.3 MB, free: 10.17 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002773/0.1284, allocations: 3.111 MB / 439.4 MB, free: 6.785 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003356/0.1287, allocations: 20.03 kB / 439.5 MB, free: 6.766 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.221e-05/0.1288, allocations: 27.98 kB / 439.5 MB, free: 6.738 MB / 366.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.0002558/0.129, allocations: 178.8 kB / 439.7 MB, free: 6.555 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001042/0.1291, allocations: 55.67 kB / 439.7 MB, free: 6.5 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001177/0.1292, allocations: 56.31 kB / 439.8 MB, free: 6.438 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.067e-06/0.1293, allocations: 15.94 kB / 439.8 MB, free: 6.422 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.082e-05/0.1293, allocations: 0 / 439.8 MB, free: 6.422 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.496e-06/0.1293, allocations: 3.984 kB / 439.8 MB, free: 6.418 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002092/0.1314, allocations: 1.275 MB / 441.1 MB, free: 5.074 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.326e-06/0.1314, allocations: 0 / 441.1 MB, free: 5.074 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004109/0.1318, allocations: 104.1 kB / 441.2 MB, free: 4.973 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002731/0.1321, allocations: 81.72 kB / 441.2 MB, free: 4.887 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.911e-05/0.1321, allocations: 12 kB / 441.3 MB, free: 4.875 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002547/0.1346, allocations: 3.088 MB / 444.3 MB, free: 1.512 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.104e-06/0.1346, allocations: 0 / 444.3 MB, free: 1.512 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001417/0.136, allocations: 0.8877 MB / 445.2 MB, free: 0.5977 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001302/0.1362, allocations: 116.9 kB / 445.3 MB, free: 476 kB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.169e-05/0.1362, allocations: 12 kB / 445.4 MB, free: 464 kB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003922/0.1366, allocations: 39.97 kB / 445.4 MB, free: 424 kB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001044/0.1367, allocations: 43.89 kB / 445.4 MB, free: 380 kB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.042e-05/0.1368, allocations: 19.98 kB / 445.5 MB, free: 360 kB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0003085/0.1371, allocations: 271.2 kB / 445.7 MB, free: 92 kB / 366.1 MB Notification: Performance of sort global known variables: time 7e-08/0.1371, allocations: 0 / 445.7 MB, free: 92 kB / 366.1 MB Notification: Performance of remove unused functions: time 0.1843/0.3214, allocations: 142.6 kB / 445.9 MB, free: 29.37 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.001709/0.3231, allocations: 1.436 MB / 447.3 MB, free: 28.59 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001147/0.3242, allocations: 0.6532 MB / 447.9 MB, free: 28.37 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.297e-06/0.3242, allocations: 2.531 kB / 448 MB, free: 28.37 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005439/0.3248, allocations: 458.7 kB / 448.4 MB, free: 28.15 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005464/0.3253, allocations: 70.23 kB / 448.5 MB, free: 28.15 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005476/0.3308, allocations: 4.835 MB / 453.3 MB, free: 26.25 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003079/0.3311, allocations: 0.8682 MB / 454.2 MB, free: 25.54 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002044/0.3313, allocations: 62 kB / 454.2 MB, free: 25.53 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002126/0.3315, allocations: 198.9 kB / 454.4 MB, free: 25.52 MB / 366.1 MB Notification: Performance of SimCode: time 7.11e-07/0.3315, allocations: 2.719 kB / 454.4 MB, free: 25.52 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03651/0.368, allocations: 10.44 MB / 464.9 MB, free: 23.61 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.33/10.69, allocations: 7.391 kB / 464.9 MB, free: 23.6 MB / 366.1 MB " [Timeout remaining time 649] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CompareTransformers_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Analog_Examples_CompareTransformers_fmu --startTime=0 --stopTime=50 --stepSize=0.001 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Analog_Examples_CompareTransformers.fmu > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CompareTransformers.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_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","/var/lib/jenkins1/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 658] Reference file matches [Calling sys.exit(0), Time elapsed: 18.24928121099947]