Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.OpAmps.ControlCircuit.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OpAmps.ControlCircuit,fileNamePrefix="Modelica_trunk_cpp_Modelica_Electrical_Analog_Examples_OpAmps_ControlCircuit",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OpAmps.ControlCircuit,fileNamePrefix="Modelica_trunk_cpp_Modelica_Electrical_Analog_Examples_OpAmps_ControlCircuit",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001458/0.001458, allocations: 191.8 kB / 17.37 MB, free: 4.434 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.219/1.219, allocations: 226.5 MB / 244.7 MB, free: 8.23 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007813/0.0007813, allocations: 106.2 kB / 296.7 MB, free: 6.898 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002062/0.0002062, allocations: 8 kB / 356.9 MB, free: 10.8 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1833/0.1836, allocations: 51.3 MB / 408.1 MB, free: 27.68 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.ControlCircuit): time 0.004515/0.1881, allocations: 6.876 MB / 415 MB, free: 20.78 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.002155/0.1903, allocations: 1.849 MB / 416.9 MB, free: 18.94 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003747/0.1907, allocations: 23.94 kB / 416.9 MB, free: 18.91 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002553/0.1909, allocations: 178.6 kB / 417.1 MB, free: 18.74 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0005044/0.1915, allocations: 357.1 kB / 417.4 MB, free: 18.39 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000466/0.1919, allocations: 311.6 kB / 417.7 MB, free: 18.08 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0009224/0.1929, allocations: 1.63 MB / 419.4 MB, free: 16.45 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005405/0.1934, allocations: 0.5175 MB / 419.9 MB, free: 15.9 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003507/0.1938, allocations: 0.4979 MB / 420.4 MB, free: 15.4 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003847/0.1942, allocations: 0.587 MB / 421 MB, free: 14.81 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001102/0.1943, allocations: 76 kB / 421 MB, free: 14.74 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001455/0.1944, allocations: 80 kB / 421.1 MB, free: 14.66 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001246/0.1946, allocations: 234.9 kB / 421.3 MB, free: 14.43 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003616/0.1949, allocations: 0.6469 MB / 422 MB, free: 13.77 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007876/0.1957, allocations: 1.594 MB / 423.6 MB, free: 12.18 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.338e-06/0.1957, allocations: 0 / 423.6 MB, free: 12.18 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.322e-06/0.1957, allocations: 0 / 423.6 MB, free: 12.18 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.415e-05/0.1958, allocations: 0 / 423.6 MB, free: 12.18 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: 311 * Number of variables: 311 Notification: Performance of Generate backend data structure: time 0.002343/0.1981, allocations: 1.583 MB / 425.2 MB, free: 10.54 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.622e-05/0.1982, allocations: 11.97 kB / 425.2 MB, free: 10.53 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000154/0.1983, allocations: 182 kB / 425.4 MB, free: 10.34 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001565/0.1985, allocations: 155.2 kB / 425.5 MB, free: 10.19 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000706/0.1992, allocations: 0.7449 MB / 426.2 MB, free: 9.398 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.374e-05/0.1992, allocations: 94.45 kB / 426.3 MB, free: 9.305 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001181/0.1994, allocations: 120 kB / 426.5 MB, free: 9.188 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001987/0.2014, allocations: 1.316 MB / 427.8 MB, free: 7.82 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.37e-05/0.2014, allocations: 0 / 427.8 MB, free: 7.82 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.49e-05/0.2015, allocations: 52 kB / 427.8 MB, free: 7.77 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.684e-05/0.2015, allocations: 32 kB / 427.9 MB, free: 7.738 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002072/0.2036, allocations: 1.149 MB / 429 MB, free: 6.582 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005852/0.2094, allocations: 5.062 MB / 434.1 MB, free: 1.297 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002011/0.2115, allocations: 1.239 MB / 435.3 MB, free: 15.99 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001051/0.2125, allocations: 0.5526 MB / 435.9 MB, free: 15.44 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.981e-05/0.2126, allocations: 16.78 kB / 435.9 MB, free: 15.43 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.601e-05/0.2126, allocations: 51.22 kB / 435.9 MB, free: 15.36 MB / 314.7 MB Notification: Performance of pre-optimization done (n=79): time 2.033e-06/0.2126, allocations: 0 / 435.9 MB, free: 15.36 MB / 314.7 MB Notification: Performance of matching and sorting (n=79): time 0.008432/0.2211, allocations: 3.155 MB / 439.1 MB, free: 12.08 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.468e-05/0.2211, allocations: 85.77 kB / 439.2 MB, free: 11.98 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008722/0.222, allocations: 0.8057 MB / 440 MB, free: 11.16 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 5.269e-05/0.2221, allocations: 41.7 kB / 440 MB, free: 11.11 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003353/0.2224, allocations: 0.592 MB / 440.6 MB, free: 10.51 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001761/0.2226, allocations: 279.9 kB / 440.9 MB, free: 10.23 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.177e-05/0.2227, allocations: 20 kB / 440.9 MB, free: 10.21 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001087/0.2228, allocations: 349.9 kB / 441.2 MB, free: 9.863 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008618/0.2236, allocations: 385.8 kB / 441.6 MB, free: 9.484 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009711/0.2246, allocations: 0.6012 MB / 442.2 MB, free: 8.797 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001806/0.2264, allocations: 0.9851 MB / 443.2 MB, free: 7.727 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.717e-06/0.2264, allocations: 4 kB / 443.2 MB, free: 7.723 MB / 314.7 MB Notification: Performance of matching and sorting (n=125) (initialization): time 0.002964/0.2294, allocations: 1.404 MB / 444.6 MB, free: 6.297 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.784e-05/0.2294, allocations: 8 kB / 444.6 MB, free: 6.289 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.324e-05/0.2295, allocations: 8 kB / 444.6 MB, free: 6.281 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007193/0.2302, allocations: 242.6 kB / 444.9 MB, free: 6.035 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003518/0.2337, allocations: 0.9287 MB / 445.8 MB, free: 5.105 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01157/0.2453, allocations: 10.22 MB / 456 MB, free: 10.09 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007686/0.2461, allocations: 154.9 kB / 456.2 MB, free: 9.938 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.562e-05/0.2462, allocations: 36 kB / 456.2 MB, free: 9.902 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 29 * 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 (111): * Single equations (assignments): 105 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 3 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 3 {1,1,1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 2} * Non-linear torn systems: 2 {1 7,1 5} Notification: Performance of prepare postOptimizeDAE: time 0.000419/0.2466, allocations: 285.5 kB / 456.5 MB, free: 9.613 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001368/0.2467, allocations: 94.88 kB / 456.6 MB, free: 9.52 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001708/0.2469, allocations: 108.9 kB / 456.7 MB, free: 9.406 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.973e-06/0.2469, allocations: 8 kB / 456.7 MB, free: 9.398 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.404e-06/0.2469, allocations: 7.938 kB / 456.7 MB, free: 9.391 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.895e-06/0.2469, allocations: 3.984 kB / 456.7 MB, free: 9.387 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004721/0.2517, allocations: 2.529 MB / 459.2 MB, free: 6.777 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.928e-06/0.2517, allocations: 0 / 459.2 MB, free: 6.777 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005018/0.2522, allocations: 127.9 kB / 459.3 MB, free: 6.652 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001286/0.2535, allocations: 448.8 kB / 459.8 MB, free: 6.195 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.554e-05/0.2535, allocations: 15.98 kB / 459.8 MB, free: 6.18 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01081/0.2644, allocations: 10.12 MB / 469.9 MB, free: 11.26 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.623e-06/0.2644, allocations: 0 / 469.9 MB, free: 11.26 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004489/0.2689, allocations: 2.044 MB / 472 MB, free: 9.168 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002183/0.2691, allocations: 191.8 kB / 472.2 MB, free: 8.961 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.822e-05/0.2692, allocations: 19.94 kB / 472.2 MB, free: 8.941 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000741/0.27, allocations: 123.9 kB / 472.3 MB, free: 8.82 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001408/0.2701, allocations: 60.42 kB / 472.4 MB, free: 8.762 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.583e-05/0.2702, allocations: 23.98 kB / 472.4 MB, free: 8.738 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0006273/0.2708, allocations: 0.5381 MB / 472.9 MB, free: 8.207 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2708, allocations: 0 / 472.9 MB, free: 8.207 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.001072/0.2719, allocations: 359 kB / 473.3 MB, free: 7.855 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 6 (PIA.c.v,firstOrder1A.c.v,firstOrder2A.c.v,PIB.x,firstOrder1B.y,firstOrder2B.y) * 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 (58): * Single equations (assignments): 52 * 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: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 2} * Non-linear torn systems: 5 {1 5,1 5,1 1,1 7,1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.004718/0.2766, allocations: 2.628 MB / 475.9 MB, free: 5.176 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.005683/0.2823, allocations: 2.139 MB / 478 MB, free: 2.996 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.356e-06/0.2823, allocations: 1.062 kB / 478 MB, free: 2.996 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0015/0.2838, allocations: 1.171 MB / 479.2 MB, free: 1.75 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001096/0.2849, allocations: 191.6 kB / 479.4 MB, free: 1.562 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01138/0.2963, allocations: 6.88 MB / 486.3 MB, free: 10.37 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005749/0.2969, allocations: 1.074 MB / 487.3 MB, free: 9.266 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005265/0.2975, allocations: 439.3 kB / 487.8 MB, free: 8.836 MB / 362.7 MB Notification: Performance of SimCode: time 6.12e-07/0.2975, allocations: 0 / 487.8 MB, free: 8.836 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.322/5.62, allocations: 46.2 MB / 0.5215 GB, free: 80.11 MB / 378.7 MB (rm -f Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.OpAmps.ControlCircuit.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.OpAmps.ControlCircuit.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.OpAmps.ControlCircuit.pipe >> ../files/Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.OpAmps.ControlCircuit.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.OpAmps.ControlCircuit_res.mat --tempDir=temp_Modelica_trunk_cpp_Modelica_Electrical_Analog_Examples_OpAmps_ControlCircuit_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_trunk_cpp_Modelica_Electrical_Analog_Examples_OpAmps_ControlCircuit.fmu > Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.OpAmps.ControlCircuit.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.OpAmps.ControlCircuit_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/OpAmps/ControlCircuit/ControlCircuit.csv","../files/Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.OpAmps.ControlCircuit.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches