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/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.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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001125/0.001125, allocations: 101 kB / 16.94 MB, free: 5.984 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.001296/0.001296, allocations: 179.4 kB / 17.82 MB, free: 5.652 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.469/1.469, allocations: 205.4 MB / 224 MB, free: 13.17 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.0004799/0.0004802, allocations: 16 kB / 280.8 MB, free: 3.652 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09581/0.0963, allocations: 47.57 MB / 328.4 MB, free: 4.008 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.DifferenceAmplifier): time 0.004889/0.1012, allocations: 4.544 MB / 333 MB, free: 15.44 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002916/0.1042, allocations: 1.474 MB / 334.4 MB, free: 13.96 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005256/0.1048, allocations: 19.94 kB / 334.5 MB, free: 13.94 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002112/0.105, allocations: 103.2 kB / 334.6 MB, free: 13.84 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006682/0.1057, allocations: 331 kB / 334.9 MB, free: 13.51 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006525/0.1063, allocations: 231.6 kB / 335.1 MB, free: 13.29 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.001026/0.1074, allocations: 0.7878 MB / 335.9 MB, free: 12.5 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004432/0.1078, allocations: 304.2 kB / 336.2 MB, free: 12.18 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004563/0.1083, allocations: 370.8 kB / 336.6 MB, free: 11.82 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004789/0.1088, allocations: 442.1 kB / 337 MB, free: 11.39 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 9.338e-05/0.1089, allocations: 59.94 kB / 337 MB, free: 11.33 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002075/0.1091, allocations: 87.95 kB / 337.1 MB, free: 11.24 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001305/0.1092, allocations: 167.4 kB / 337.3 MB, free: 11.08 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001648/0.1094, allocations: 205.2 kB / 337.5 MB, free: 10.87 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009334/0.1103, allocations: 1.048 MB / 338.5 MB, free: 9.82 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.316e-06/0.1104, allocations: 0 / 338.5 MB, free: 9.82 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.1104, allocations: 0 / 338.5 MB, free: 9.82 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.831e-05/0.1104, allocations: 0 / 338.5 MB, free: 9.82 MB / 286.1 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.002366/0.1128, allocations: 1.157 MB / 339.7 MB, free: 8.613 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.112e-05/0.1128, allocations: 12.03 kB / 339.7 MB, free: 8.602 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001743/0.113, allocations: 127 kB / 339.8 MB, free: 8.469 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001601/0.1132, allocations: 98.88 kB / 339.9 MB, free: 8.371 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006877/0.1139, allocations: 0.4924 MB / 340.4 MB, free: 7.84 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.268e-05/0.1139, allocations: 62 kB / 340.5 MB, free: 7.777 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001207/0.1141, allocations: 76 kB / 340.6 MB, free: 7.703 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001524/0.1156, allocations: 0.8844 MB / 341.4 MB, free: 6.805 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.743e-05/0.1156, allocations: 0 / 341.4 MB, free: 6.805 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.299e-05/0.1157, allocations: 32 kB / 341.5 MB, free: 6.773 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.881e-05/0.1158, allocations: 20 kB / 341.5 MB, free: 6.754 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001513/0.1173, allocations: 0.8043 MB / 342.3 MB, free: 5.949 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004895/0.1222, allocations: 3.092 MB / 345.4 MB, free: 2.734 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001127/0.1234, allocations: 0.6539 MB / 346 MB, free: 2.074 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.473e-05/0.1234, allocations: 16.53 kB / 346.1 MB, free: 2.059 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.185e-05/0.1235, allocations: 47.06 kB / 346.1 MB, free: 2.004 MB / 286.1 MB Notification: Performance of pre-optimization done (n=67): time 3.797e-06/0.1235, allocations: 4 kB / 346.1 MB, free: 2 MB / 286.1 MB Notification: Performance of matching and sorting (n=71): time 0.004635/0.1281, allocations: 2.252 MB / 348.4 MB, free: 15.69 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.444e-05/0.1282, allocations: 64.06 kB / 348.4 MB, free: 15.62 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006173/0.1288, allocations: 0.495 MB / 348.9 MB, free: 15.11 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.403e-05/0.1289, allocations: 41.64 kB / 349 MB, free: 15.07 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002717/0.1292, allocations: 395.5 kB / 349.3 MB, free: 14.67 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001901/0.1294, allocations: 256.2 kB / 349.6 MB, free: 14.42 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.345e-05/0.1294, allocations: 20 kB / 349.6 MB, free: 14.4 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001632/0.1296, allocations: 374.8 kB / 350 MB, free: 14.03 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006069/0.1302, allocations: 321.8 kB / 350.3 MB, free: 13.71 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006733/0.1309, allocations: 429.1 kB / 350.7 MB, free: 13.26 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006641/0.1316, allocations: 370.9 kB / 351.1 MB, free: 12.9 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.645e-06/0.1316, allocations: 3.938 kB / 351.1 MB, free: 12.89 MB / 302.1 MB Notification: Performance of matching and sorting (n=99) (initialization): time 0.002046/0.1336, allocations: 1.056 MB / 352.1 MB, free: 11.83 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.326e-05/0.1337, allocations: 8 kB / 352.1 MB, free: 11.82 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.001e-05/0.1337, allocations: 4 kB / 352.1 MB, free: 11.82 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005579/0.1342, allocations: 180.1 kB / 352.3 MB, free: 11.64 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008211/0.1351, allocations: 195.7 kB / 352.5 MB, free: 11.45 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003823/0.1389, allocations: 2.652 MB / 355.2 MB, free: 8.664 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006436/0.1396, allocations: 44.03 kB / 355.2 MB, free: 8.621 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.923e-05/0.1396, allocations: 31.98 kB / 355.2 MB, free: 8.59 MB / 302.1 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 () * Number of clocked 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.0004095/0.1401, allocations: 217.8 kB / 355.5 MB, free: 8.367 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000115/0.1402, allocations: 75.11 kB / 355.5 MB, free: 8.293 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001613/0.1403, allocations: 86.17 kB / 355.6 MB, free: 8.203 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.316e-06/0.1404, allocations: 11.94 kB / 355.6 MB, free: 8.191 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.343e-05/0.1404, allocations: 4 kB / 355.6 MB, free: 8.188 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.867e-06/0.1404, allocations: 7.984 kB / 355.6 MB, free: 8.18 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001031/0.1414, allocations: 0.8339 MB / 356.5 MB, free: 7.297 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.977e-06/0.1414, allocations: 0 / 356.5 MB, free: 7.297 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006825/0.1421, allocations: 155.8 kB / 356.6 MB, free: 7.145 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005271/0.1427, allocations: 173.8 kB / 356.8 MB, free: 6.973 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.981e-05/0.1427, allocations: 23.97 kB / 356.8 MB, free: 6.949 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003643/0.1464, allocations: 2.658 MB / 359.5 MB, free: 4.16 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.503e-06/0.1464, allocations: 0 / 359.5 MB, free: 4.16 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002647/0.1491, allocations: 1.423 MB / 360.9 MB, free: 2.719 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002442/0.1493, allocations: 136.3 kB / 361 MB, free: 2.566 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001001/0.1495, allocations: 16 kB / 361 MB, free: 2.551 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005775/0.15, allocations: 63.95 kB / 361.1 MB, free: 2.488 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001468/0.1502, allocations: 52.58 kB / 361.2 MB, free: 2.434 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.479e-05/0.1503, allocations: 23.98 kB / 361.2 MB, free: 2.41 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0004452/0.1507, allocations: 346.9 kB / 361.5 MB, free: 2.074 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1507, allocations: 0 / 361.5 MB, free: 2.074 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0008401/0.1516, allocations: 228 kB / 361.7 MB, free: 1.852 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.C.v,Transistor2.ct.v,Transistor2.Tr.C.v) * 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 (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,68.0%) 11} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.003/0.1546, allocations: 1.996 MB / 363.7 MB, free: 15.82 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.002314/0.1569, allocations: 1.026 MB / 364.8 MB, free: 14.79 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 4.568e-06/0.1569, allocations: 0 / 364.8 MB, free: 14.79 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00136/0.1583, allocations: 0.6359 MB / 365.4 MB, free: 14.14 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007449/0.1591, allocations: 114.2 kB / 365.5 MB, free: 14.03 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008822/0.1679, allocations: 6.866 MB / 372.4 MB, free: 7.047 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005502/0.1685, allocations: 0.9733 MB / 373.3 MB, free: 6.047 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0003935/0.1689, allocations: 81.05 kB / 373.4 MB, free: 5.969 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003906/0.1693, allocations: 291.3 kB / 373.7 MB, free: 5.684 MB / 318.1 MB Notification: Performance of SimCode: time 1.042e-06/0.1693, allocations: 0 / 373.7 MB, free: 5.684 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1898/0.3592, allocations: 15.82 MB / 389.5 MB, free: 49.73 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000156/0.3594, allocations: 209.8 kB / 389.7 MB, free: 49.49 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.092/2.451, allocations: 0 / 389.7 MB, free: 49.49 MB / 318.1 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) Environment - environmentSimulation: