Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.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.DifferenceAmplifier,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Analog_Examples_DifferenceAmplifier",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.DifferenceAmplifier,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Analog_Examples_DifferenceAmplifier",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.001198/0.001198, allocations: 178.4 kB / 8.697 MB, free: 388 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.532/1.532, allocations: 205.3 MB / 214.4 MB, free: 1.668 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009198/0.0009199, allocations: 86.72 kB / 262.4 MB, free: 1.613 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 2.044e-05/2.046e-05, allocations: 7.984 kB / 315.6 MB, free: 22.62 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09748/0.09751, allocations: 47.58 MB / 363.2 MB, free: 6.98 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3496/0.4472, allocations: 79.65 MB / 442.8 MB, free: 44 kB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002466/0.4475, allocations: 68.41 kB / 442.9 MB, free: 12 kB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03822/0.4857, allocations: 14.16 MB / 457 MB, free: 4.258 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.222e-06/0.4858, allocations: 4 kB / 457 MB, free: 4.254 MB / 330.7 MB Notification: Performance of Transformations before backend: time 4.573e-05/0.4858, allocations: 28.73 kB / 457.1 MB, free: 4.227 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 203 * Number of variables: 203 Notification: Performance of Generate backend data structure: time 0.002115/0.488, allocations: 1.052 MB / 458.1 MB, free: 3.188 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.991e-05/0.488, allocations: 12.03 kB / 458.1 MB, free: 3.176 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001884/0.4882, allocations: 102.8 kB / 458.2 MB, free: 3.074 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006952/0.4889, allocations: 0.4893 MB / 458.7 MB, free: 2.633 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.954e-05/0.489, allocations: 24 kB / 458.8 MB, free: 2.609 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001134/0.4891, allocations: 51.38 kB / 458.8 MB, free: 2.562 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001122/0.4902, allocations: 0.6655 MB / 459.5 MB, free: 2.156 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001164/0.4914, allocations: 0.7148 MB / 460.2 MB, free: 1.641 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.683e-05/0.4914, allocations: 0 / 460.2 MB, free: 1.641 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.37e-05/0.4915, allocations: 4 kB / 460.2 MB, free: 1.637 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.683e-05/0.4915, allocations: 20 kB / 460.2 MB, free: 1.617 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004954/0.4965, allocations: 2.961 MB / 463.2 MB, free: 15.28 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008613/0.4974, allocations: 0.5851 MB / 463.8 MB, free: 14.96 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000458/0.4978, allocations: 358.2 kB / 464.1 MB, free: 14.75 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.456e-05/0.4979, allocations: 11.38 kB / 464.1 MB, free: 14.74 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.356e-05/0.498, allocations: 38.25 kB / 464.2 MB, free: 14.7 MB / 346.7 MB Notification: Performance of pre-optimization done (n=67): time 3.857e-06/0.498, allocations: 0 / 464.2 MB, free: 14.7 MB / 346.7 MB Notification: Performance of matching and sorting (n=71): time 0.00553/0.5035, allocations: 2.189 MB / 466.3 MB, free: 12.95 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.946e-05/0.5036, allocations: 60.19 kB / 466.4 MB, free: 12.88 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004662/0.504, allocations: 393.6 kB / 466.8 MB, free: 12.57 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 5.229e-05/0.5041, allocations: 25.7 kB / 466.8 MB, free: 12.54 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002401/0.5043, allocations: 398.9 kB / 467.2 MB, free: 12.24 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00018/0.5045, allocations: 242.4 kB / 467.4 MB, free: 12.04 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.63e-05/0.5046, allocations: 4 kB / 467.4 MB, free: 12.03 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001711/0.5048, allocations: 367.9 kB / 467.8 MB, free: 11.69 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004051/0.5052, allocations: 258.5 kB / 468 MB, free: 11.55 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000478/0.5057, allocations: 366.4 kB / 468.4 MB, free: 11.29 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001215/0.5069, allocations: 478.2 kB / 468.9 MB, free: 10.96 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.416e-06/0.5069, allocations: 0 / 468.9 MB, free: 10.96 MB / 346.7 MB Notification: Performance of matching and sorting (n=99) (initialization): time 0.002399/0.5093, allocations: 1.057 MB / 469.9 MB, free: 10.18 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.74e-05/0.5093, allocations: 8.266 kB / 469.9 MB, free: 10.17 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.454e-05/0.5094, allocations: 11.98 kB / 470 MB, free: 10.16 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005456/0.5099, allocations: 162.7 kB / 470.1 MB, free: 10.03 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008221/0.5108, allocations: 199.1 kB / 470.3 MB, free: 9.844 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003629/0.5144, allocations: 2.527 MB / 472.8 MB, free: 7.477 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007183/0.5151, allocations: 31.97 kB / 472.9 MB, free: 7.445 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.306e-05/0.5152, allocations: 24.06 kB / 472.9 MB, free: 7.422 MB / 346.7 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (84): * Single equations (assignments): 83 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(5,60.0%) 11} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002175/0.5154, allocations: 120.8 kB / 473 MB, free: 7.297 MB / 346.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.002223/0.5177, allocations: 0.9255 MB / 473.9 MB, free: 6.359 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001163/0.5178, allocations: 67.25 kB / 474 MB, free: 6.293 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000226/0.518, allocations: 70.19 kB / 474.1 MB, free: 6.219 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.218e-06/0.5181, allocations: 8 kB / 474.1 MB, free: 6.211 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.971e-06/0.5181, allocations: 4 kB / 474.1 MB, free: 6.207 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.937e-06/0.5181, allocations: 7.984 kB / 474.1 MB, free: 6.199 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001069/0.5192, allocations: 0.7256 MB / 474.8 MB, free: 5.438 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.469e-06/0.5192, allocations: 0 / 474.8 MB, free: 5.438 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007224/0.5199, allocations: 152 kB / 475 MB, free: 5.289 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005047/0.5204, allocations: 180.7 kB / 475.1 MB, free: 5.109 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.356e-05/0.5205, allocations: 15.98 kB / 475.1 MB, free: 5.094 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00347/0.524, allocations: 2.526 MB / 477.7 MB, free: 2.453 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.226e-06/0.524, allocations: 0 / 477.7 MB, free: 2.453 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002905/0.5269, allocations: 1.408 MB / 479.1 MB, free: 1.027 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001735/0.5271, allocations: 132.3 kB / 479.2 MB, free: 0.8789 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.771e-05/0.5272, allocations: 0 / 479.2 MB, free: 0.8789 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005647/0.5278, allocations: 55.95 kB / 479.3 MB, free: 0.8242 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001127/0.5279, allocations: 48.7 kB / 479.3 MB, free: 0.7734 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.423e-05/0.5279, allocations: 23.98 kB / 479.3 MB, free: 0.75 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0004021/0.5283, allocations: 303 kB / 479.6 MB, free: 464 kB / 346.7 MB Notification: Performance of sort global known variables: time 2.2e-07/0.5284, allocations: 0 / 479.6 MB, free: 464 kB / 346.7 MB Notification: Performance of remove unused functions: time 0.0009363/0.5293, allocations: 204 kB / 479.8 MB, free: 260 kB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 9 (C1.v,C4.v,C5.v,C2.v,C3.v,Transistor1.ct.v,Transistor1.Tr.C.v,Transistor2.ct.v,Transistor2.Tr.C.v) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (56): * Single equations (assignments): 55 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(5,60.0%) 11} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.003189/0.5325, allocations: 1.974 MB / 481.8 MB, free: 14.25 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.00189/0.5344, allocations: 0.8739 MB / 482.7 MB, free: 13.37 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.927e-06/0.5344, allocations: 3.938 kB / 482.7 MB, free: 13.36 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001079/0.5355, allocations: 0.5598 MB / 483.2 MB, free: 12.79 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006439/0.5362, allocations: 90.34 kB / 483.3 MB, free: 12.71 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003182/0.5394, allocations: 1.664 MB / 485 MB, free: 11 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005577/0.5399, allocations: 0.9696 MB / 486 MB, free: 10 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0003862/0.5403, allocations: 76.84 kB / 486 MB, free: 9.922 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004246/0.5408, allocations: 291.3 kB / 486.3 MB, free: 9.637 MB / 362.7 MB Notification: Performance of SimCode: time 7.41e-07/0.5408, allocations: 0 / 486.3 MB, free: 9.637 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04201/0.5828, allocations: 14.16 MB / 0.4888 GB, free: 11.46 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003368/0.5832, allocations: 148.2 kB / 0.4889 GB, free: 11.27 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.296/2.879, allocations: 0 / 0.4889 GB, free: 11.27 MB / 378.7 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Analog.Examples.DifferenceAmplifier_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Analog_Examples_DifferenceAmplifier_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Analog_Examples_DifferenceAmplifier.fmu > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.pipe 2>&1)