Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Blocks.ConversionBlocks.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.002004/0.002004, allocations: 81.61 kB / 20.49 MB, free: 1.086 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002242/0.002242, allocations: 163.4 kB / 23.75 MB, free: 4.172 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.446/1.446, allocations: 177.1 MB / 203.9 MB, free: 8.957 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2129/0.2129, allocations: 34.26 MB / 294.7 MB, free: 14.5 MB / 286.1 MB " [Timeout remaining time 179] Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Blocks.ConversionBlocks,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Blocks_ConversionBlocks",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.ConversionBlocks,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Blocks_ConversionBlocks",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.003853/0.003853, allocations: 79.88 kB / 441.9 MB, free: 6.992 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3644/0.3682, allocations: 66.06 MB / 0.4961 GB, free: 29.49 MB / 446.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.ConversionBlocks): time 0.002558/0.3708, allocations: 2.041 MB / 0.498 GB, free: 28.12 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.001636/0.3724, allocations: 1.282 MB / 0.4993 GB, free: 27.28 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.257e-05/0.3725, allocations: 3.188 kB / 0.4993 GB, free: 27.28 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 6.056e-05/0.3726, allocations: 26.48 kB / 0.4993 GB, free: 27.26 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001133/0.3727, allocations: 38.36 kB / 0.4994 GB, free: 27.23 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004465/0.3731, allocations: 194.9 kB / 0.4995 GB, free: 27.13 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.000171/0.3733, allocations: 182.1 kB / 0.4997 GB, free: 27.04 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001557/0.3735, allocations: 83.03 kB / 0.4998 GB, free: 27 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001399/0.3736, allocations: 89.55 kB / 0.4999 GB, free: 26.95 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.464e-05/0.3737, allocations: 73.39 kB / 0.5 GB, free: 26.91 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 2.208e-05/0.3737, allocations: 16.12 kB / 0.5 GB, free: 26.91 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002217/0.3739, allocations: 149 kB / 0.5001 GB, free: 26.86 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 2.756e-05/0.3739, allocations: 49.48 kB / 0.5002 GB, free: 26.82 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 5.036e-05/0.374, allocations: 75.66 kB / 0.5002 GB, free: 26.78 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003223/0.3743, allocations: 326.5 kB / 0.5005 GB, free: 26.64 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.657e-06/0.3743, allocations: 0 / 0.5005 GB, free: 26.64 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.303e-06/0.3743, allocations: 0 / 0.5005 GB, free: 26.64 MB / 446.1 MB Notification: Performance of Transformations before backend: time 6.051e-06/0.3743, allocations: 0 / 0.5005 GB, free: 26.64 MB / 446.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 66 * Number of variables: 66 Notification: Performance of Generate backend data structure: time 0.0004485/0.3748, allocations: 457.8 kB / 0.501 GB, free: 26.26 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.417e-05/0.3748, allocations: 9.719 kB / 0.501 GB, free: 26.26 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.606e-05/0.3749, allocations: 90.48 kB / 0.5011 GB, free: 26.18 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009032/0.3758, allocations: 89.16 kB / 0.5012 GB, free: 26.16 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002166/0.376, allocations: 157.3 kB / 0.5013 GB, free: 26 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.611e-05/0.376, allocations: 25.56 kB / 0.5013 GB, free: 25.99 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.055e-05/0.3761, allocations: 34.25 kB / 0.5014 GB, free: 25.98 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003241/0.3764, allocations: 231.9 kB / 0.5016 GB, free: 25.88 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.203e-05/0.3764, allocations: 0 / 0.5016 GB, free: 25.88 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.803e-05/0.3764, allocations: 11.22 kB / 0.5016 GB, free: 25.87 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.963e-06/0.3764, allocations: 10.12 kB / 0.5016 GB, free: 25.86 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002541/0.3767, allocations: 165.2 kB / 0.5018 GB, free: 25.82 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007142/0.3774, allocations: 0.5623 MB / 0.5023 GB, free: 25.42 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004542/0.3778, allocations: 217.4 kB / 0.5025 GB, free: 25.35 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001058/0.3779, allocations: 66.72 kB / 0.5026 GB, free: 25.32 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.804e-05/0.378, allocations: 3.203 kB / 0.5026 GB, free: 25.32 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.292e-05/0.378, allocations: 33.92 kB / 0.5026 GB, free: 25.28 MB / 446.1 MB Notification: Performance of pre-optimization done (n=27): time 1.603e-06/0.378, allocations: 0 / 0.5026 GB, free: 25.28 MB / 446.1 MB Notification: Performance of matching and sorting (n=27): time 0.0003816/0.3784, allocations: 212.7 kB / 0.5028 GB, free: 25.2 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.358e-05/0.3784, allocations: 61.86 kB / 0.5029 GB, free: 25.13 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.75e-05/0.3784, allocations: 99.98 kB / 0.503 GB, free: 25.03 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 1.35e-05/0.3784, allocations: 33.64 kB / 0.503 GB, free: 24.99 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.208e-05/0.3785, allocations: 162.9 kB / 0.5032 GB, free: 24.85 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.587e-05/0.3785, allocations: 95.36 kB / 0.5033 GB, free: 24.77 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.117e-05/0.3786, allocations: 41.14 kB / 0.5033 GB, free: 24.75 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 4.36e-05/0.3786, allocations: 325.5 kB / 0.5036 GB, free: 24.43 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.09e-05/0.3787, allocations: 43.08 kB / 0.5036 GB, free: 24.41 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.392e-05/0.3788, allocations: 45.89 kB / 0.5037 GB, free: 24.4 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001727/0.379, allocations: 120 kB / 0.5038 GB, free: 24.35 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.824e-06/0.379, allocations: 0 / 0.5038 GB, free: 24.35 MB / 446.1 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.0002254/0.3792, allocations: 163.8 kB / 0.504 GB, free: 24.27 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.146e-05/0.3792, allocations: 10 kB / 0.504 GB, free: 24.27 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.319e-06/0.3792, allocations: 256 / 0.504 GB, free: 24.27 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.421e-05/0.3792, allocations: 3 kB / 0.504 GB, free: 24.27 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003333/0.3795, allocations: 107.5 kB / 0.5041 GB, free: 24.25 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.831e-06/0.3796, allocations: 2.875 kB / 0.5041 GB, free: 24.25 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.384e-05/0.3796, allocations: 13.98 kB / 0.5041 GB, free: 24.25 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.978e-06/0.3796, allocations: 6 kB / 0.5041 GB, free: 24.25 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * 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 (27): * Single equations (assignments): 27 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 7.202e-05/0.3797, allocations: 136.3 kB / 0.5042 GB, free: 24.11 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.345e-05/0.3797, allocations: 13.78 kB / 0.5042 GB, free: 24.1 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.822e-05/0.3798, allocations: 21.62 kB / 0.5043 GB, free: 24.07 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.099e-06/0.3798, allocations: 10.09 kB / 0.5043 GB, free: 24.07 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.579e-06/0.3798, allocations: 0 / 0.5043 GB, free: 24.07 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.457e-06/0.3798, allocations: 2.938 kB / 0.5043 GB, free: 24.07 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002081/0.38, allocations: 241.3 kB / 0.5045 GB, free: 23.87 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.843e-06/0.38, allocations: 3.328 kB / 0.5045 GB, free: 23.87 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003209/0.3803, allocations: 104 kB / 0.5046 GB, free: 23.86 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.294e-06/0.3803, allocations: 3 kB / 0.5046 GB, free: 23.86 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.056e-05/0.3803, allocations: 0 / 0.5046 GB, free: 23.86 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.745e-06/0.3803, allocations: 6.969 kB / 0.5046 GB, free: 23.85 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.51e-07/0.3803, allocations: 0 / 0.5046 GB, free: 23.85 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002555/0.3806, allocations: 272.6 kB / 0.5049 GB, free: 23.67 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.291e-05/0.3806, allocations: 22.3 kB / 0.5049 GB, free: 23.65 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.746e-05/0.3806, allocations: 3 kB / 0.5049 GB, free: 23.65 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.109e-05/0.3807, allocations: 14.97 kB / 0.5049 GB, free: 23.64 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.107e-05/0.3808, allocations: 16.7 kB / 0.5049 GB, free: 23.64 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.027e-06/0.3808, allocations: 6.328 kB / 0.5049 GB, free: 23.64 MB / 446.1 MB Notification: Performance of sorting global known variables: time 2.091e-05/0.3808, allocations: 89.22 kB / 0.505 GB, free: 23.55 MB / 446.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3808, allocations: 3.938 kB / 0.505 GB, free: 23.55 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0002659/0.3811, allocations: 57 kB / 0.5051 GB, free: 23.53 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 simulation (27): * Single equations (assignments): 27 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000473/0.3815, allocations: 0.8716 MB / 0.5059 GB, free: 22.79 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0002204/0.3817, allocations: 128.7 kB / 0.5061 GB, free: 22.75 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.513e-06/0.3817, allocations: 3.156 kB / 0.5061 GB, free: 22.75 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 9.509e-05/0.3818, allocations: 68.47 kB / 0.5061 GB, free: 22.73 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002259/0.3821, allocations: 14.97 kB / 0.5061 GB, free: 22.72 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001548/0.3836, allocations: 1.972 MB / 0.5081 GB, free: 21.25 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.395e-05/0.3837, allocations: 138 kB / 0.5082 GB, free: 21.17 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 8.016e-05/0.3838, allocations: 14.75 kB / 0.5082 GB, free: 21.16 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.706e-05/0.3839, allocations: 69.19 kB / 0.5083 GB, free: 21.11 MB / 446.1 MB Notification: Performance of SimCode: time 4e-07/0.3839, allocations: 0 / 0.5083 GB, free: 21.11 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02735/0.4112, allocations: 3.324 MB / 0.5115 GB, free: 20.02 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.44/11.85, allocations: 16.05 kB / 0.5115 GB, free: 20 MB / 446.1 MB " [Timeout remaining time 648] (rm -f ModelicaTest_trunk_ModelicaTest.Blocks.ConversionBlocks.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Blocks.ConversionBlocks.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Blocks.ConversionBlocks.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Blocks.ConversionBlocks.sim & python3 -m fmpy simulate --output-file ModelicaTest_trunk_ModelicaTest.Blocks.ConversionBlocks_res.csv --start-time 0 --stop-time 1.1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.000219912 ModelicaTest_trunk_ModelicaTest_Blocks_ConversionBlocks.fmu > ModelicaTest_trunk_ModelicaTest.Blocks.ConversionBlocks.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Blocks.ConversionBlocks_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Blocks/ConversionBlocks/ConversionBlocks.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Blocks.ConversionBlocks.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: 15.080256908899173]