Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.ComplexBlocks.Examples.TestConversionBlock.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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.ComplexBlocks.Examples.TestConversionBlock,fileNamePrefix="Modelica_3_2_3_Modelica_ComplexBlocks_Examples_TestConversionBlock",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.ComplexBlocks.Examples.TestConversionBlock,fileNamePrefix="Modelica_3_2_3_Modelica_ComplexBlocks_Examples_TestConversionBlock",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001396/0.001396, allocations: 109 kB / 17.73 MB, free: 5.316 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001134/0.001134, allocations: 187 kB / 18.67 MB, free: 4.387 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.337/1.337, allocations: 205.1 MB / 224.5 MB, free: 12.2 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001163/0.001163, allocations: 51.94 kB / 328 MB, free: 3.836 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08506/0.08623, allocations: 46.62 MB / 374.6 MB, free: 5.109 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.ComplexBlocks.Examples.TestConversionBlock): time 0.002716/0.08899, allocations: 1.503 MB / 376.1 MB, free: 3.594 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009557/0.08997, allocations: 0.5468 MB / 376.7 MB, free: 3.039 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.345e-05/0.09005, allocations: 0 / 376.7 MB, free: 3.039 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001118/0.0902, allocations: 11.88 kB / 376.7 MB, free: 3.027 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 8.291e-05/0.09029, allocations: 15.88 kB / 376.7 MB, free: 3.012 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001784/0.09047, allocations: 39.91 kB / 376.7 MB, free: 2.973 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 9.67e-05/0.09058, allocations: 55.83 kB / 376.8 MB, free: 2.918 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.866e-05/0.09068, allocations: 15.98 kB / 376.8 MB, free: 2.902 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001215/0.09081, allocations: 27.92 kB / 376.8 MB, free: 2.875 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.959e-05/0.09089, allocations: 31.84 kB / 376.9 MB, free: 2.844 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.647e-05/0.09092, allocations: 8 kB / 376.9 MB, free: 2.836 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.319e-05/0.09098, allocations: 12 kB / 376.9 MB, free: 2.824 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 2.413e-05/0.09101, allocations: 23.91 kB / 376.9 MB, free: 2.801 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 3.988e-05/0.09106, allocations: 31.86 kB / 376.9 MB, free: 2.77 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001657/0.09123, allocations: 67.67 kB / 377 MB, free: 2.703 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.931e-06/0.09125, allocations: 3.984 kB / 377 MB, free: 2.699 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.142e-06/0.09125, allocations: 0 / 377 MB, free: 2.699 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.421e-06/0.09126, allocations: 0 / 377 MB, free: 2.699 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.0006186/0.09189, allocations: 379.2 kB / 377.4 MB, free: 2.281 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.024e-05/0.09193, allocations: 12.03 kB / 377.4 MB, free: 2.27 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.422e-05/0.09198, allocations: 38.75 kB / 377.4 MB, free: 2.223 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.873e-05/0.09202, allocations: 8.891 kB / 377.4 MB, free: 2.215 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001205/0.09214, allocations: 180.2 kB / 377.6 MB, free: 2 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.513e-05/0.09217, allocations: 4.312 kB / 377.6 MB, free: 1.996 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.523e-05/0.09219, allocations: 8.375 kB / 377.6 MB, free: 1.988 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002617/0.09246, allocations: 89.75 kB / 377.7 MB, free: 1.895 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.095e-06/0.09247, allocations: 0 / 377.7 MB, free: 1.895 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.116e-05/0.09249, allocations: 0 / 377.7 MB, free: 1.895 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.459e-06/0.0925, allocations: 0 / 377.7 MB, free: 1.895 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003104/0.09282, allocations: 83.86 kB / 377.8 MB, free: 1.812 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003964/0.09322, allocations: 304.8 kB / 378.1 MB, free: 1.465 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002439/0.09348, allocations: 78.52 kB / 378.2 MB, free: 1.379 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000164/0.09365, allocations: 48.98 kB / 378.2 MB, free: 1.328 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.74e-05/0.09367, allocations: 0 / 378.2 MB, free: 1.328 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.908e-05/0.09371, allocations: 30.56 kB / 378.2 MB, free: 1.289 MB / 318.1 MB Notification: Performance of pre-optimization done (n=5): time 8.62e-07/0.09372, allocations: 0 / 378.2 MB, free: 1.289 MB / 318.1 MB Notification: Performance of matching and sorting (n=5): time 0.0005784/0.0943, allocations: 149.6 kB / 378.4 MB, free: 1.137 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.095e-05/0.09435, allocations: 51.41 kB / 378.4 MB, free: 1.074 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.517e-05/0.09443, allocations: 113.8 kB / 378.5 MB, free: 0.9531 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.363e-05/0.09445, allocations: 25.7 kB / 378.6 MB, free: 0.9219 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.692e-05/0.0945, allocations: 96.02 kB / 378.7 MB, free: 0.8242 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.271e-05/0.09453, allocations: 15.89 kB / 378.7 MB, free: 0.8086 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.859e-05/0.09458, allocations: 25.66 kB / 378.7 MB, free: 0.7773 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 9.808e-05/0.09468, allocations: 322.8 kB / 379 MB, free: 464 kB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001513/0.09484, allocations: 31.97 kB / 379 MB, free: 432 kB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001417/0.09499, allocations: 43.89 kB / 379.1 MB, free: 388 kB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002897/0.09529, allocations: 85.16 kB / 379.2 MB, free: 300 kB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.904e-06/0.0953, allocations: 4 kB / 379.2 MB, free: 296 kB / 318.1 MB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0003346/0.09564, allocations: 109.6 kB / 379.3 MB, free: 180 kB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.503e-05/0.09566, allocations: 8.375 kB / 379.3 MB, free: 172 kB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.919e-06/0.09567, allocations: 0 / 379.3 MB, free: 172 kB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.233e-05/0.09569, allocations: 4 kB / 379.3 MB, free: 168 kB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001342/0.09583, allocations: 23.91 kB / 379.3 MB, free: 144 kB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.89e-06/0.09584, allocations: 3.938 kB / 379.3 MB, free: 140 kB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.499e-05/0.09593, allocations: 11.98 kB / 379.3 MB, free: 128 kB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.295e-06/0.09595, allocations: 3.938 kB / 379.3 MB, free: 124 kB / 318.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 (5): * Single equations (assignments): 5 * 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 0.1647/0.2607, allocations: 121.2 kB / 379.5 MB, free: 12.79 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.902e-05/0.2607, allocations: 2.5 kB / 379.5 MB, free: 12.79 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004931/0.2612, allocations: 131.9 kB / 379.6 MB, free: 12.75 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.272e-06/0.2612, allocations: 2.312 kB / 379.6 MB, free: 12.75 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.771e-06/0.2613, allocations: 0.9375 kB / 379.6 MB, free: 12.75 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.669e-06/0.2613, allocations: 0 / 379.6 MB, free: 12.75 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002055/0.2615, allocations: 190.8 kB / 379.8 MB, free: 12.57 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.687e-06/0.2615, allocations: 5.141 kB / 379.8 MB, free: 12.57 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001353/0.2616, allocations: 21.42 kB / 379.8 MB, free: 12.57 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.13e-06/0.2617, allocations: 0.8438 kB / 379.8 MB, free: 12.57 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.166e-06/0.2617, allocations: 1.312 kB / 379.8 MB, free: 12.57 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.865e-06/0.2617, allocations: 0 / 379.8 MB, free: 12.57 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.294e-06/0.2617, allocations: 1.656 kB / 379.8 MB, free: 12.57 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003966/0.2621, allocations: 224 kB / 380 MB, free: 12.44 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.478e-05/0.2621, allocations: 82.12 kB / 380.1 MB, free: 12.34 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.746e-05/0.2621, allocations: 2.453 kB / 380.1 MB, free: 12.34 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001163/0.2623, allocations: 14.39 kB / 380.1 MB, free: 12.34 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.331e-05/0.2623, allocations: 10.16 kB / 380.1 MB, free: 12.34 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.845e-06/0.2623, allocations: 1.375 kB / 380.1 MB, free: 12.34 MB / 318.1 MB Notification: Performance of sorting global known variables: time 4.269e-05/0.2624, allocations: 90.33 kB / 380.2 MB, free: 12.27 MB / 318.1 MB Notification: Performance of sort global known variables: time 9e-08/0.2624, allocations: 0 / 380.2 MB, free: 12.27 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002487/0.2626, allocations: 20.11 kB / 380.2 MB, free: 12.27 MB / 318.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 (7): * Single equations (assignments): 7 * 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.0005734/0.2632, allocations: 0.7481 MB / 381 MB, free: 11.62 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0003858/0.2636, allocations: 88.52 kB / 381.1 MB, free: 11.62 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.665e-06/0.2636, allocations: 0 / 381.1 MB, free: 11.62 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001689/0.2638, allocations: 53.03 kB / 381.1 MB, free: 11.62 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003256/0.2641, allocations: 11.89 kB / 381.1 MB, free: 11.61 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005033/0.2646, allocations: 199.7 kB / 381.3 MB, free: 11.45 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001334/0.2648, allocations: 0.6908 MB / 382 MB, free: 10.76 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 3.532e-05/0.2648, allocations: 3.266 kB / 382 MB, free: 10.76 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.584e-05/0.2649, allocations: 21.97 kB / 382 MB, free: 10.75 MB / 318.1 MB Notification: Performance of SimCode: time 5.51e-07/0.2649, allocations: 0.9688 kB / 382.1 MB, free: 10.75 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0192/0.2841, allocations: 2.041 MB / 384.1 MB, free: 10.24 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.765/8.049, allocations: 5.297 kB / 384.1 MB, free: 10.23 MB / 318.1 MB (rm -f Modelica_3.2.3_Modelica.ComplexBlocks.Examples.TestConversionBlock.pipe ; mkfifo Modelica_3.2.3_Modelica.ComplexBlocks.Examples.TestConversionBlock.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.ComplexBlocks.Examples.TestConversionBlock.pipe >> ../files/Modelica_3.2.3_Modelica.ComplexBlocks.Examples.TestConversionBlock.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_Modelica.ComplexBlocks.Examples.TestConversionBlock_res.csv --start-time 0 --stop-time 1.01 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.001 Modelica_3_2_3_Modelica_ComplexBlocks_Examples_TestConversionBlock.fmu > Modelica_3.2.3_Modelica.ComplexBlocks.Examples.TestConversionBlock.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.ComplexBlocks.Examples.TestConversionBlock_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/ComplexBlocks/Examples/TestConversionBlock/TestConversionBlock.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.ComplexBlocks.Examples.TestConversionBlock.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches