Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.HeatingMOSInverter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.HeatingMOSInverter,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Analog_Examples_HeatingMOSInverter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.HeatingMOSInverter,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Analog_Examples_HeatingMOSInverter",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0008943/0.0008947, allocations: 175.9 kB / 16.72 MB, free: 4.953 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.305/1.305, allocations: 205.4 MB / 222.9 MB, free: 9.012 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007006/0.0007006, allocations: 92.98 kB / 271.2 MB, free: 8.25 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002869/0.0002869, allocations: 8 kB / 327.6 MB, free: 15.8 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2164/0.2167, allocations: 47.58 MB / 375.2 MB, free: 45.41 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingMOSInverter): time 0.002273/0.219, allocations: 2.644 MB / 377.8 MB, free: 43.33 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001011/0.2201, allocations: 0.7931 MB / 378.6 MB, free: 42.68 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001403/0.2202, allocations: 4.562 kB / 378.6 MB, free: 42.68 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000123/0.2204, allocations: 45.69 kB / 378.7 MB, free: 42.64 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001417/0.2205, allocations: 94.8 kB / 378.8 MB, free: 42.55 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000249/0.2208, allocations: 105.9 kB / 378.9 MB, free: 42.46 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003647/0.2211, allocations: 495.6 kB / 379.3 MB, free: 42.17 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002181/0.2214, allocations: 141.5 kB / 379.5 MB, free: 42.08 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001855/0.2216, allocations: 180 kB / 379.7 MB, free: 41.98 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001884/0.2218, allocations: 220.5 kB / 379.9 MB, free: 41.83 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 5.506e-05/0.2218, allocations: 31.12 kB / 379.9 MB, free: 41.83 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.992e-05/0.2219, allocations: 33.69 kB / 379.9 MB, free: 41.82 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 5.911e-05/0.222, allocations: 80.44 kB / 380 MB, free: 41.76 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001557/0.2221, allocations: 226.5 kB / 380.2 MB, free: 41.59 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002872/0.2224, allocations: 405.1 kB / 380.6 MB, free: 41.29 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.759e-06/0.2224, allocations: 0 / 380.6 MB, free: 41.29 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.142e-06/0.2225, allocations: 5.312 kB / 380.6 MB, free: 41.29 MB / 298.7 MB Notification: Performance of Transformations before backend: time 8.986e-06/0.2225, allocations: 0 / 380.6 MB, free: 41.29 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 92 * Number of variables: 92 Notification: Performance of Generate backend data structure: time 0.001224/0.2237, allocations: 0.7519 MB / 381.4 MB, free: 40.69 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.57e-05/0.2237, allocations: 9.625 kB / 381.4 MB, free: 40.69 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.946e-05/0.2238, allocations: 79.2 kB / 381.5 MB, free: 40.61 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.874e-05/0.2239, allocations: 48.12 kB / 381.5 MB, free: 40.59 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002568/0.2242, allocations: 301.5 kB / 381.8 MB, free: 40.29 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.88e-05/0.2242, allocations: 31.45 kB / 381.9 MB, free: 40.27 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.954e-05/0.2243, allocations: 32.56 kB / 381.9 MB, free: 40.27 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009762/0.2253, allocations: 0.536 MB / 382.4 MB, free: 39.94 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.793e-05/0.2253, allocations: 4 kB / 382.4 MB, free: 39.94 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.753e-05/0.2253, allocations: 16.44 kB / 382.4 MB, free: 39.93 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.778e-06/0.2253, allocations: 8.656 kB / 382.4 MB, free: 39.93 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001348/0.2267, allocations: 0.5615 MB / 383 MB, free: 39.69 MB / 298.7 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002191/0.2289, allocations: 1.693 MB / 384.7 MB, free: 38.25 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001009/0.2299, allocations: 464.8 kB / 385.2 MB, free: 38.04 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000499/0.2304, allocations: 259.7 kB / 385.4 MB, free: 37.93 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.836e-05/0.2305, allocations: 17.83 kB / 385.4 MB, free: 37.91 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.114e-05/0.2305, allocations: 37.89 kB / 385.5 MB, free: 37.87 MB / 298.7 MB Notification: Performance of pre-optimization done (n=40): time 1.613e-06/0.2305, allocations: 0 / 385.5 MB, free: 37.87 MB / 298.7 MB Notification: Performance of matching and sorting (n=40): time 0.00443/0.2349, allocations: 1.548 MB / 387 MB, free: 36.5 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.666e-05/0.235, allocations: 162.2 kB / 387.2 MB, free: 36.31 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002423/0.2352, allocations: 266.9 kB / 387.4 MB, free: 36.04 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.756e-05/0.2353, allocations: 33.7 kB / 387.5 MB, free: 36 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.879e-05/0.2354, allocations: 212.3 kB / 387.7 MB, free: 35.79 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.64e-05/0.2354, allocations: 137.9 kB / 387.8 MB, free: 35.66 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.271e-05/0.2355, allocations: 8 kB / 387.8 MB, free: 35.65 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.918e-05/0.2355, allocations: 342.8 kB / 388.1 MB, free: 35.3 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000447/0.236, allocations: 208.8 kB / 388.4 MB, free: 35.1 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004707/0.2365, allocations: 306.4 kB / 388.7 MB, free: 34.77 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008496/0.2373, allocations: 466.5 kB / 389.1 MB, free: 34.29 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.284e-06/0.2373, allocations: 0 / 389.1 MB, free: 34.29 MB / 298.7 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.001695/0.239, allocations: 0.7717 MB / 389.9 MB, free: 33.5 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.57e-05/0.2391, allocations: 8 kB / 389.9 MB, free: 33.49 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.531e-06/0.2391, allocations: 0 / 389.9 MB, free: 33.49 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001141/0.2402, allocations: 341.4 kB / 390.2 MB, free: 33.15 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003073/0.2405, allocations: 87.98 kB / 390.3 MB, free: 33.07 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008829/0.2414, allocations: 1.362 MB / 391.7 MB, free: 31.65 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004475/0.2419, allocations: 99.69 kB / 391.8 MB, free: 31.55 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.785e-05/0.2419, allocations: 12 kB / 391.8 MB, free: 31.54 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * 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 (33): * Single equations (assignments): 31 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 9,1 9} Notification: Performance of prepare postOptimizeDAE: time 0.0001475/0.2421, allocations: 162.7 kB / 391.9 MB, free: 31.38 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.66e-05/0.2421, allocations: 35.53 kB / 392 MB, free: 31.34 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0019/0.244, allocations: 0.8174 MB / 392.8 MB, free: 30.51 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.548e-06/0.2441, allocations: 4 kB / 392.8 MB, free: 30.5 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.478e-06/0.2441, allocations: 4 kB / 392.8 MB, free: 30.5 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.859e-06/0.2441, allocations: 0 / 392.8 MB, free: 30.5 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004315/0.2445, allocations: 465 kB / 393.3 MB, free: 30 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.697e-06/0.2445, allocations: 7.984 kB / 393.3 MB, free: 29.99 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002731/0.2448, allocations: 67.95 kB / 393.3 MB, free: 29.92 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001055/0.2459, allocations: 337.6 kB / 393.7 MB, free: 29.59 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.624e-05/0.2459, allocations: 8 kB / 393.7 MB, free: 29.58 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008687/0.2468, allocations: 1.393 MB / 395.1 MB, free: 28.13 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.192e-06/0.2468, allocations: 0 / 395.1 MB, free: 28.13 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00222/0.249, allocations: 1.125 MB / 396.2 MB, free: 26.98 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.183e-05/0.2491, allocations: 112.6 kB / 396.3 MB, free: 26.86 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.862e-05/0.2491, allocations: 8 kB / 396.3 MB, free: 26.85 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003622/0.2495, allocations: 64 kB / 396.4 MB, free: 26.79 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.641e-05/0.2496, allocations: 19.97 kB / 396.4 MB, free: 26.77 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.552e-05/0.2496, allocations: 15.98 kB / 396.4 MB, free: 26.75 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.000169/0.2498, allocations: 186 kB / 396.6 MB, free: 26.57 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2498, allocations: 4 kB / 396.6 MB, free: 26.56 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003752/0.2502, allocations: 111.7 kB / 396.7 MB, free: 26.45 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (Capacitor1.v,HeatCapacitor1.T) * 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 (22): * Single equations (assignments): 20 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 10,1 10} Notification: Performance of Backend phase and start with SimCode phase: time 0.00247/0.2527, allocations: 1.681 MB / 398.4 MB, free: 24.74 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001096/0.2538, allocations: 0.4996 MB / 398.9 MB, free: 24.24 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.415e-06/0.2538, allocations: 4.312 kB / 398.9 MB, free: 24.23 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005322/0.2543, allocations: 283.8 kB / 399.2 MB, free: 23.96 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003941/0.2547, allocations: 44.34 kB / 399.2 MB, free: 23.92 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004294/0.259, allocations: 2.828 MB / 402 MB, free: 21.01 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001601/0.2592, allocations: 0.7959 MB / 402.8 MB, free: 20.19 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001458/0.2594, allocations: 123.4 kB / 402.9 MB, free: 20.07 MB / 298.7 MB Notification: Performance of SimCode: time 3.21e-07/0.2594, allocations: 0 / 402.9 MB, free: 20.07 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.218/3.478, allocations: 8.033 MB / 411 MB, free: 12.02 MB / 298.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.HeatingMOSInverter.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.HeatingMOSInverter.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.HeatingMOSInverter.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.HeatingMOSInverter.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.HeatingMOSInverter_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Electrical_Analog_Examples_HeatingMOSInverter_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Electrical_Analog_Examples_HeatingMOSInverter.fmu > Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.HeatingMOSInverter.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.HeatingMOSInverter_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Analog/Examples/HeatingMOSInverter/HeatingMOSInverter.csv","../files/Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.HeatingMOSInverter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches