Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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.Electrical.Analog.Examples.DifferenceAmplifier,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_DifferenceAmplifier",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.DifferenceAmplifier,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_DifferenceAmplifier",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.001198/0.001198, allocations: 111.6 kB / 16.63 MB, free: 6.953 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.001125/0.001125, allocations: 193.9 kB / 17.55 MB, free: 6.043 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.553/1.553, allocations: 222.9 MB / 241.2 MB, free: 13.74 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001214/0.001214, allocations: 52.53 kB / 300.2 MB, free: 5.891 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1167/0.1179, allocations: 49.44 MB / 349.7 MB, free: 4.441 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.DifferenceAmplifier): time 0.00711/0.1251, allocations: 6.046 MB / 355.7 MB, free: 14.36 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.003285/0.1284, allocations: 1.517 MB / 357.2 MB, free: 12.84 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008756/0.1293, allocations: 16 kB / 357.3 MB, free: 12.82 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004541/0.1298, allocations: 127 kB / 357.4 MB, free: 12.7 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008175/0.1307, allocations: 249.9 kB / 357.6 MB, free: 12.45 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009327/0.1316, allocations: 363.6 kB / 358 MB, free: 12.09 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001503/0.1331, allocations: 1.387 MB / 359.4 MB, free: 10.7 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005911/0.1337, allocations: 437.2 kB / 359.8 MB, free: 10.25 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007139/0.1344, allocations: 498.3 kB / 360.3 MB, free: 9.762 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005782/0.135, allocations: 0.5719 MB / 360.9 MB, free: 9.188 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001582/0.1352, allocations: 136 kB / 361 MB, free: 9.055 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002645/0.1355, allocations: 168 kB / 361.2 MB, free: 8.891 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002005/0.1357, allocations: 275.2 kB / 361.4 MB, free: 8.621 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005092/0.1362, allocations: 0.5871 MB / 362 MB, free: 8.031 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001342/0.1376, allocations: 1.519 MB / 363.5 MB, free: 6.508 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.441e-06/0.1376, allocations: 0 / 363.5 MB, free: 6.508 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.773e-06/0.1376, allocations: 0 / 363.5 MB, free: 6.508 MB / 302.1 MB Notification: Performance of Transformations before backend: time 2.38e-05/0.1376, allocations: 4 kB / 363.5 MB, free: 6.504 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 221 * Number of variables: 221 Notification: Performance of Generate backend data structure: time 0.002708/0.1403, allocations: 1.383 MB / 364.9 MB, free: 5.066 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.517e-05/0.1404, allocations: 12.02 kB / 364.9 MB, free: 5.055 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001689/0.1406, allocations: 139.6 kB / 365.1 MB, free: 4.91 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001869/0.1408, allocations: 111.6 kB / 365.2 MB, free: 4.801 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006789/0.1414, allocations: 0.5461 MB / 365.7 MB, free: 4.215 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.604e-05/0.1415, allocations: 62.38 kB / 365.8 MB, free: 4.156 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001326/0.1416, allocations: 96.28 kB / 365.9 MB, free: 4.062 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001597/0.1432, allocations: 0.8585 MB / 366.7 MB, free: 3.199 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.994e-05/0.1433, allocations: 4 kB / 366.7 MB, free: 3.195 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.418e-05/0.1434, allocations: 39.94 kB / 366.8 MB, free: 3.156 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.794e-05/0.1434, allocations: 20 kB / 366.8 MB, free: 3.137 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001562/0.145, allocations: 0.8511 MB / 367.6 MB, free: 2.281 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.226/0.3709, allocations: 3.226 MB / 370.9 MB, free: 23.86 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001313/0.3723, allocations: 0.6672 MB / 371.5 MB, free: 23.82 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007761/0.3731, allocations: 435.5 kB / 372 MB, free: 23.75 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.473e-05/0.3732, allocations: 14.11 kB / 372 MB, free: 23.75 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.427e-05/0.3732, allocations: 41.83 kB / 372 MB, free: 23.7 MB / 302.1 MB Notification: Performance of pre-optimization done (n=69): time 3.226e-06/0.3732, allocations: 0 / 372 MB, free: 23.7 MB / 302.1 MB Notification: Performance of matching and sorting (n=73): time 0.005074/0.3783, allocations: 2.263 MB / 374.3 MB, free: 22.64 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.693e-05/0.3784, allocations: 58.94 kB / 374.3 MB, free: 22.58 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000844/0.3792, allocations: 0.6124 MB / 374.9 MB, free: 22.3 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 6.781e-05/0.3793, allocations: 38.42 kB / 375 MB, free: 22.27 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002927/0.3796, allocations: 442.8 kB / 375.4 MB, free: 21.92 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002132/0.3798, allocations: 258.3 kB / 375.7 MB, free: 21.72 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003066/0.3801, allocations: 146.3 kB / 375.8 MB, free: 21.64 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001642/0.3803, allocations: 384.4 kB / 376.2 MB, free: 21.3 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006952/0.381, allocations: 330.5 kB / 376.5 MB, free: 21.17 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007537/0.3817, allocations: 474 kB / 377 MB, free: 20.89 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001445/0.3832, allocations: 0.8004 MB / 377.8 MB, free: 20.44 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.759e-06/0.3832, allocations: 1.906 kB / 377.8 MB, free: 20.44 MB / 302.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.002388/0.3856, allocations: 1.114 MB / 378.9 MB, free: 19.95 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.159e-05/0.3857, allocations: 8.906 kB / 378.9 MB, free: 19.95 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.701e-05/0.3857, allocations: 3.812 kB / 378.9 MB, free: 19.95 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000642/0.3863, allocations: 197 kB / 379.1 MB, free: 19.89 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009452/0.3873, allocations: 199.9 kB / 379.3 MB, free: 19.88 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004576/0.3919, allocations: 2.88 MB / 382.2 MB, free: 17.65 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001037/0.393, allocations: 37.7 kB / 382.2 MB, free: 17.63 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.335e-05/0.3931, allocations: 30.42 kB / 382.2 MB, free: 17.63 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * 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 (90): * Single equations (assignments): 89 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(5,13,72.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0005291/0.3936, allocations: 238.1 kB / 382.5 MB, free: 17.43 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002008/0.3938, allocations: 87.78 kB / 382.6 MB, free: 17.39 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002004/0.394, allocations: 94.67 kB / 382.6 MB, free: 17.31 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.336e-05/0.394, allocations: 7.688 kB / 382.7 MB, free: 17.31 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.936e-05/0.3941, allocations: 3.5 kB / 382.7 MB, free: 17.31 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.009e-05/0.3941, allocations: 3.328 kB / 382.7 MB, free: 17.31 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001401/0.3955, allocations: 0.8857 MB / 383.5 MB, free: 16.86 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.602e-06/0.3955, allocations: 0 / 383.5 MB, free: 16.86 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008155/0.3963, allocations: 152 kB / 383.7 MB, free: 16.84 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006351/0.397, allocations: 185 kB / 383.9 MB, free: 16.79 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.775e-05/0.3971, allocations: 18.41 kB / 383.9 MB, free: 16.78 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003945/0.401, allocations: 2.899 MB / 386.8 MB, free: 14.54 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.886e-06/0.4011, allocations: 0 / 386.8 MB, free: 14.54 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003225/0.4043, allocations: 1.428 MB / 388.2 MB, free: 13.85 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003451/0.4047, allocations: 151.4 kB / 388.4 MB, free: 13.7 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001249/0.4048, allocations: 17.27 kB / 388.4 MB, free: 13.69 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007313/0.4055, allocations: 56.67 kB / 388.4 MB, free: 13.68 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002091/0.4058, allocations: 48.33 kB / 388.5 MB, free: 13.67 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.619e-05/0.4058, allocations: 26.89 kB / 388.5 MB, free: 13.66 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0007429/0.4066, allocations: 427.1 kB / 388.9 MB, free: 13.47 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.81e-07/0.4066, allocations: 0 / 388.9 MB, free: 13.47 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.001403/0.408, allocations: 240.9 kB / 389.2 MB, free: 13.45 MB / 302.1 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.vcs,Transistor2.ct.v,Transistor2.Tr.vcs) * 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 (56): * Single equations (assignments): 55 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(5,13,72.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.00329/0.4113, allocations: 2.006 MB / 391.2 MB, free: 12.2 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.002742/0.4141, allocations: 1.073 MB / 392.2 MB, free: 11.73 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 5.68e-06/0.4141, allocations: 0 / 392.2 MB, free: 11.73 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001431/0.4156, allocations: 0.638 MB / 392.9 MB, free: 11.41 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001198/0.4168, allocations: 150.5 kB / 393 MB, free: 11.35 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01269/0.4295, allocations: 8.091 MB / 401.1 MB, free: 5.758 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004266/0.4299, allocations: 0.9853 MB / 402.1 MB, free: 4.746 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0005421/0.4305, allocations: 93.47 kB / 402.2 MB, free: 4.652 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003905/0.4309, allocations: 323.3 kB / 402.5 MB, free: 4.336 MB / 302.1 MB Notification: Performance of SimCode: time 3.937e-06/0.4309, allocations: 0 / 402.5 MB, free: 4.336 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04209/0.473, allocations: 18.48 MB / 421 MB, free: 2.133 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0004366/0.4735, allocations: 235.7 kB / 421.2 MB, free: 1.875 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.534/3.008, allocations: 3.938 kB / 421.2 MB, free: 1.871 MB / 318.1 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Analog.Examples.DifferenceAmplifier_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Analog_Examples_DifferenceAmplifier_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Analog_Examples_DifferenceAmplifier.fmu > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.pipe 2>&1)